PHPackages                             nass600/portiere - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. nass600/portiere

ActiveLibrary[CLI &amp; Console](/categories/cli)

nass600/portiere
================

Vhost builder command based on Console Component

0.4.0(9y ago)014MITPHPPHP &gt;=5.5.9

Since Feb 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nass600/portiere)[ Packagist](https://packagist.org/packages/nass600/portiere)[ Docs](http://github.com/nass600/portiere)[ RSS](/packages/nass600-portiere/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (5)Used By (0)

 [![Portiere - Virtual host builder](docs/img/portiere.png)](docs/img/portiere.png)
 Portiere

==================================================================================================

[](#------------portiere--------)

 [ ![Travis Build Status](https://camo.githubusercontent.com/9ecbd6440a6697bf945c9f06fa6e617cd52eb58f011987400b2124f601b5bfc4/68747470733a2f2f6170692e7472617669732d63692e6f72672f6e6173733630302f706f7274696572652e7376673f6272616e63683d6d6173746572) ](https://travis-ci.org/nass600/portiere) [ ![Packagist Latest Version](https://camo.githubusercontent.com/a5110069148ef120e30ae5fbe6c928054723b83fd384023d75fa68bcf0cef863/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6173733630302f706f7274696572652e737667) ](https://packagist.org/packages/nass600/portiere) [ ![Packagist Download Counter](https://camo.githubusercontent.com/e353e62fb4b017a41433b116df35ec10bf6e156c5f0332616851bccad0b2de8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6173733630302f706f7274696572652e737667) ](https://packagist.org/packages/nass600/portiere) [ ![License](https://camo.githubusercontent.com/7cf43853f73203d5233435b8b0fa4d7702ff0c0bf39d63d318574491bb2fde57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6173733630302f706f7274696572652e737667) ](LICENSE) [ ![SensioLabs Insight](https://camo.githubusercontent.com/63722114216581894b1987362bbbbed9468ae2adfa2f6313fbd9ddf8ccef7e05/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39653734643564652d333863642d343938622d623264632d6363383334343739343036662f6d696e692e706e67) ](https://insight.sensiolabs.com/projects/9e74d5de-38cd-498b-b2dc-cc834479406f) [ ![StyleCI](https://camo.githubusercontent.com/77f276a936af122a1fa13c3d90bf02e058c8dc551fcd4d4bb951c071c3f7fad1/68747470733a2f2f7374796c6563692e696f2f7265706f732f32383831303935392f736869656c643f6272616e63683d6d6173746572) ](https://styleci.io/repos/28810959) [ ![Scrutinizer Quality Score](https://camo.githubusercontent.com/8069dda9c2329a5182b2dac23e29d56431b68002680a42ba02f77e6a2f47d579/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6173733630302f706f7274696572652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/nass600/portiere/?branch=master) [ ![Code Coverage](https://camo.githubusercontent.com/e2232aed64e215c4eafe722ac7299bdf02e45a32b3fd7fe7281b8289306d9e52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6173733630302f706f7274696572652f6261646765732f636f7665726167652e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/nass600/portiere/?branch=master)

####  Symfony Console command to handle virtual hosts for a Symfony project in a Unix machine.

[](#----symfony-console-command-to-handle-virtual-hosts-for-a-symfony-project-in-a-unix-machine)

Supported Web Servers
---------------------

[](#supported-web-servers)

[![](docs/img/nginx.png)](docs/img/nginx.png)NginxInstallation
------------

[](#installation)

The installation is handled by composer and you can install it either globally or locally.

### Globally

[](#globally)

Require the library globally by executing:

```
composer global require nass600/portiere 0.4.0
```

and add composer global package binaries to your PATH if you didn't yet:

```
echo "export PATH=~/.composer/vendor/bin:$PATH" >> ~/.bashrc
```

You are ready to go by running wherever you want the commands `vhost-create`and `vhost-delete`

### Locally

[](#locally)

Require the library by executing:

```
composer require-dev nass600/portiere 0.4.0
```

You are ready to go by running from the root of your project the commands `bin/vhost-create`and `bin/vhost-delete`

Usage
-----

[](#usage)

**Note**: You probably need `sudo` permissions for executing this commands successfully

### vhost:list

[](#vhostlist)

Lists all the virtual hosts

```
portiere vhost:list
```

### vhost:create

[](#vhostcreate)

This command will:

1. Create a virtual host file named `serverName` or `vhost-filename` if set
2. Create an error log file named `vhost-filename.error.log` and an access log file named `vhost-filename.access.log` in the web server default logs directory
3. Enable the virtual host
4. Restart the web server

```
portiere vhost:create dev.example.com /home/user/sites/project/web
```

**Arguments**

argumentdescriptionserverNameThe server name of the virtual hostdocumentRootThe directory holding the front controller php file**Options**

optiondefaultdescription--vhost-filename, -vf{{serverName}}The virtual host filename--no-devDon't add development environment to vhost file### vhost:delete

[](#vhostdelete)

This command will:

1. Remove the virtual host file named `vhostFilename`
2. Remove both access and error log files from the web server default logs directory
3. Disable the virtual host
4. Restart the web server

```
portiere vhost:delete dev.example.com
```

**Arguments**

argumentdescriptionvhostFilenameThe virtual host filenameFuture work
-----------

[](#future-work)

- Support more web servers
- Improve tests

License
-------

[](#license)

[MIT](LICENSE)

Authors
-------

[](#authors)

- [Ignacio Velazquez](http://ignaciovelazquez.es)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~247 days

Total

4

Last Release

3412d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d6b8d46fe8f048c98fcf4f9f84ce16adc90768f5a7ab3a950aab9c8f4f34835?d=identicon)[nass600](/maintainers/nass600)

---

Top Contributors

[![nass600](https://avatars.githubusercontent.com/u/759551?v=4)](https://github.com/nass600 "nass600 (49 commits)")

---

Tags

nginxsymfony-consolevhostvhost-buildersymfonycommandnginxapachevirtual hostvhost

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nass600-portiere/health.svg)

```
[![Health](https://phpackages.com/badges/nass600-portiere/health.svg)](https://phpackages.com/packages/nass600-portiere)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M465](/packages/pimcore-pimcore)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
