Code Monkey home page Code Monkey logo

vhost's Introduction

๐Ÿ’ป Virtual Hosts Cli

Create Virtual Hosts for apache with one click

๐Ÿ”ง Installation

Install with Composer as global for best perfomance

composer global require abo3adel/vhost

โ— Reqirements:

  • php: 7.3 or newer
  • symfony/console: 3.4.23

โœจ Usage

โ— Note: Run as Administrator

trailer image

There are two ways:

๐Ÿ“  Options Way:

C:\xampp\htdocs\project> vhost add -s "project.test"
Creating Virtual Host From this data
========================================

------------------------------------------------------------
ServerName              project.test
------------------------------------------------------------
DocumentRoot            "C:\xampp\htdocs\project"
------------------------------------------------------------
ServerAdmin             
------------------------------------------------------------
ServerAlias             
------------------------------------------------------------
ErrorLog                ""
------------------------------------------------------------
CustomLog               ""
------------------------------------------------------------

Existing Application, GoodBuy.

All Avaliable options:

  • add [-s|--server [Server Name]] [Required]
  • [-d|--dir [Path to Server Directory]] [Optinal] Defaults to CurrentDirectory
  • [-a|--admin [Admin Email]] [Optinal]
  • [-l|--alias [Server Alias]] [Optinal]
  • [-e|--error-log [Error Log]] [Optinal]
  • [-c|--custom-log [Custom Log]] [Optinal]
    C:\xampp\htdocs\project> vhost add -s "project.test" -d "C:\xampp\htdocs\someOtherApp" -a "[email protected]" -l "dev.preoject.test" -e "path/to/error/file.log" -c "path/to/custom/file.log"

๐ŸŽ Interactive Mode:

C:\xampp\htdocs\project> vhost i

Creating Virutal Host From this data
====================================

 Server Name ["project.com"]:
 >

 Server Directory ["C:\xampp\htdocs\project"]:
 >

 Server Admin Email []:
 >

 Server Alias []:
 >

 Error Log File []:
 >

 Custom Log File []:
 >

TODO:

  • support linux and macOs

vhost's People

Contributors

ahmedadel35 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.