{"id":23221780,"url":"https://github.com/nass600/portiere","last_synced_at":"2026-04-30T02:37:19.097Z","repository":{"id":25382596,"uuid":"28810959","full_name":"nass600/portiere","owner":"nass600","description":"Symfony console command for managing vhosts","archived":false,"fork":false,"pushed_at":"2017-03-13T00:14:41.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T00:55:39.885Z","etag":null,"topics":["nginx","symfony-console","vhost","vhost-builder"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nass600.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-05T12:05:17.000Z","updated_at":"2017-02-25T13:01:49.000Z","dependencies_parsed_at":"2022-08-22T20:30:50.206Z","dependency_job_id":null,"html_url":"https://github.com/nass600/portiere","commit_stats":null,"previous_names":["nass600/vhost-manager"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nass600/portiere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nass600%2Fportiere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nass600%2Fportiere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nass600%2Fportiere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nass600%2Fportiere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nass600","download_url":"https://codeload.github.com/nass600/portiere/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nass600%2Fportiere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32452741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nginx","symfony-console","vhost","vhost-builder"],"created_at":"2024-12-18T22:18:22.765Z","updated_at":"2026-04-30T02:37:19.082Z","avatar_url":"https://github.com/nass600.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"docs/img/portiere.png\" alt=\"Portiere - Virtual host builder\" width=\"200\" height=\"156\"\u003e\n    \u003cbr\u003e\n    Portiere\n    \u003cbr\u003e\n    \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/nass600/portiere\"\u003e\n        \u003cimg src=\"https://api.travis-ci.org/nass600/portiere.svg?branch=master\" alt=\"Travis Build Status\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/nass600/portiere\"\u003e\n        \u003cimg src=\"https://img.shields.io/packagist/v/nass600/portiere.svg\" alt=\"Packagist Latest Version\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/nass600/portiere\"\u003e\n        \u003cimg src=\"https://img.shields.io/packagist/dt/nass600/portiere.svg\" alt=\"Packagist Download Counter\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/packagist/l/nass600/portiere.svg\" alt=\"License\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://insight.sensiolabs.com/projects/9e74d5de-38cd-498b-b2dc-cc834479406f\"\u003e\n        \u003cimg src=\"https://insight.sensiolabs.com/projects/9e74d5de-38cd-498b-b2dc-cc834479406f/mini.png\" alt=\"SensioLabs Insight\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://styleci.io/repos/28810959\"\u003e\n        \u003cimg src=\"https://styleci.io/repos/28810959/shield?branch=master\" alt=\"StyleCI\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://scrutinizer-ci.com/g/nass600/portiere/?branch=master\"\u003e\n        \u003cimg src=\"https://scrutinizer-ci.com/g/nass600/portiere/badges/quality-score.png?b=master\" alt=\"Scrutinizer Quality Score\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://scrutinizer-ci.com/g/nass600/portiere/?branch=master\"\u003e\n        \u003cimg src=\"https://scrutinizer-ci.com/g/nass600/portiere/badges/coverage.png?b=master\" alt=\"Code Coverage\"\u003e\n    \u003c/a\u003e\n\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n    Symfony Console command to handle virtual hosts for a Symfony project in a Unix machine.\n\u003c/h4\u003e\n\n## Supported Web Servers\n\n\n| ![](docs/img/nginx.png)  |\n|:------------------------:|\n| Nginx                    |\n\n\n## Installation\n\nThe installation is handled by composer and you can install it either globally or locally.\n\n### Globally\n\nRequire the library globally by executing:\n\n````bash\ncomposer global require nass600/portiere 0.4.0\n````\n\nand add composer global package binaries to your PATH if you didn't yet:\n\n````bash\necho \"export PATH=~/.composer/vendor/bin:$PATH\" \u003e\u003e ~/.bashrc\n````\n\nYou are ready to go by running wherever you want the commands `vhost-create`and `vhost-delete`\n\n### Locally\n\nRequire the library by executing:\n\n````bash\ncomposer require-dev nass600/portiere 0.4.0\n````\n\nYou are ready to go by running from the root of your project the commands `bin/vhost-create`and `bin/vhost-delete`\n\n\n## Usage\n\n**Note**: You probably need `sudo` permissions for executing this commands successfully\n\n### vhost:list\n\nLists all the virtual hosts\n\n````bash\nportiere vhost:list\n````\n\n### vhost:create\n\nThis command will:\n\n1. Create a virtual host file named `serverName` or `vhost-filename` if set\n2. 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\n3. Enable the virtual host\n4. Restart the web server\n\n````bash\nportiere vhost:create dev.example.com /home/user/sites/project/web\n````\n\n__Arguments__\n\n| argument      | description                                         |\n| ------------- | --------------------------------------------------- |\n| serverName    | The server name of the virtual host                 |\n| documentRoot  | The directory holding the front controller php file |\n\n__Options__\n\n| option                | default        | description                                     |\n| --------------------- | -------------- | ----------------------------------------------- |\n| --vhost-filename, -vf | {{serverName}} | The virtual host filename                       |\n| --no-dev              |                | Don't add development environment to vhost file |\n\n\n### vhost:delete\n\nThis command will:\n\n1. Remove the virtual host file named `vhostFilename`\n2. Remove both access and error log files from the web server default logs directory\n3. Disable the virtual host\n4. Restart the web server\n\n````bash\nportiere vhost:delete dev.example.com\n````\n\n__Arguments__\n\n| argument       | description               |\n| -------------- | ------------------------- |\n| vhostFilename  | The virtual host filename |\n\n\n## Future work\n\n+ Support more web servers\n+ Improve tests\n\n## License\n\n[MIT](LICENSE)\n\n## Authors\n\n+ [Ignacio Velazquez](http://ignaciovelazquez.es)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnass600%2Fportiere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnass600%2Fportiere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnass600%2Fportiere/lists"}