Download the PHP package nass600/portiere without Composer
On this page you can find all versions of the php package nass600/portiere. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nass600/portiere
More information about nass600/portiere
Files in nass600/portiere
Package portiere
Short Description Vhost builder command based on Console Component
License MIT
Homepage http://github.com/nass600/portiere
Informations about the package portiere
Portiere
Symfony Console command to handle virtual hosts for a Symfony project in a Unix machine.
Supported Web Servers
Nginx |
Installation
The installation is handled by composer and you can install it either globally or locally.
Globally
Require the library globally by executing:
`
and add composer global package binaries to your PATH if you didn't yet:
`
You are ready to go by running wherever you want the commands vhost-create
and vhost-delete
Locally
Require the library by executing:
`
You are ready to go by running from the root of your project the commands bin/vhost-create
and bin/vhost-delete
Usage
Note: You probably need sudo
permissions for executing this commands successfully
vhost:list
Lists all the virtual hosts
`
vhost:create
This command will:
- Create a virtual host file named
serverName
orvhost-filename
if set - Create an error log file named
vhost-filename.error.log
and an access log file namedvhost-filename.access.log
in the web server default logs directory - Enable the virtual host
- Restart the web server
`
Arguments
argument | description |
---|---|
serverName | The server name of the virtual host |
documentRoot | The directory holding the front controller php file |
Options
option | default | description |
---|---|---|
--vhost-filename, -vf | {{serverName}} | The virtual host filename |
--no-dev | Don't add development environment to vhost file |
vhost:delete
This command will:
- Remove the virtual host file named
vhostFilename
- Remove both access and error log files from the web server default logs directory
- Disable the virtual host
- Restart the web server
`
Arguments
argument | description |
---|---|
vhostFilename | The virtual host filename |
Future work
- Support more web servers
- Improve tests
License
MIT
Authors
All versions of portiere with dependencies
symfony/console Version ^3.2
symfony/templating Version ^3.2
symfony/filesystem Version ^3.2
symfony/finder Version ^3.2