{"id":31045761,"url":"https://github.com/horizom/dev-server","last_synced_at":"2025-09-14T17:31:59.181Z","repository":{"id":57800606,"uuid":"528011984","full_name":"horizom/dev-server","owner":"horizom","description":"Reverse proxy for PHP built-in server which supports multiprocessing and TLS/SSL encryption","archived":false,"fork":false,"pushed_at":"2022-08-23T14:01:22.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T20:52:35.284Z","etag":null,"topics":["builtin-server","multi-process","php","ssl","tls"],"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/horizom.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":"2022-08-23T13:49:45.000Z","updated_at":"2022-08-23T14:11:13.000Z","dependencies_parsed_at":"2022-08-26T03:43:23.115Z","dependency_job_id":null,"html_url":"https://github.com/horizom/dev-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/horizom/dev-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horizom%2Fdev-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horizom%2Fdev-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horizom%2Fdev-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horizom%2Fdev-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horizom","download_url":"https://codeload.github.com/horizom/dev-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horizom%2Fdev-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275139269,"owners_count":25412218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":["builtin-server","multi-process","php","ssl","tls"],"created_at":"2025-09-14T17:31:58.099Z","updated_at":"2025-09-14T17:31:59.167Z","avatar_url":"https://github.com/horizom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://packagist.org/packages/horizom/dev-server\"\u003e\u003cimg src=\"https://poser.pugx.org/horizom/dev-server/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/horizom/dev-server\"\u003e\u003cimg src=\"https://poser.pugx.org/horizom/dev-server/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/horizom/dev-server\"\u003e\u003cimg src=\"https://poser.pugx.org/horizom/dev-server/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Horizom Dev Server\n\nReverse proxy for PHP built-in server which supports multiprocessing and TLS/SSL encryption.\n\n## Installing\n\n### Global install\n\n```shell script\ncomposer global require horizom/dev-server\n```\n\nIf not yet, you must add **`~/.composer/vendor/bin`** to `$PATH`.  \nAppend the following statement to `~/.bashrc`, `~/.zshrc` or what not.\n\n```bash\nexport PATH=\"$HOME/.composer/vendor/bin:$PATH\"\n```\n\n### Local install only for development environment\n\n```shell script\ncomposer require --dev horizom/dev-server\n```\n\nUse **`vendor/bin/horizom-serve`** as the execution path.\n\n## Usage\n\n### Quick start\n\n```shell script\nhorizom-serve -S localhost -s localhost -t public\n```\n\n2 servers will start with the directory `public` as the document root:\n\n- `http://localhost:8000`\n- `https://localhost:44300`\n\nServers start with first unoccupied port within range depending on a scheme.\n\n| Scheme  | Default | Range       |\n| ------- | ------- | ----------- |\n| `HTTP`  | 8000    | 8000-8099   |\n| `HTTPS` | 44300   | 44300-44399 |\n\n### Customize ports\n\n```shell script\nhorizom-serve -S localhost:8080 -s localhost:4000 -t public\n```\n\n2 servers will start with the directory `public` as the document root:\n\n- `http://localhost:8080`\n- `https://localhost:4000`\n\n### Command Reference\n\n```ShellSession\nmpyw@localhost:~$ horizom-serve -h\n\nUsage:\n    horizom-serve \u003coptions\u003e\n\nExample:\n    horizom-serve -S localhost:8000 -s localhost:44300\n\n[Required]\n    -S   \"\u003cHost\u003e:\u003cPort\u003e\" of an HTTP server. Multiple arguments can be accepted.\n    -s   \"\u003cHost\u003e:\u003cPort\u003e\" of an HTTPS server. Multiple arguments can be accepted.\n\n[Optional]\n    -n   The number of PHP built-in server clusters, from 1 to 20. Default is 10.\n    -t   Path for the document root. Default is the current directory.\n    -r   Path for the router script. Default is empty.\n    -c   Path for the PEM-encoded certificate.\n         Default is \"/Users/username/.composer/vendor/horizom/dev-server/certificate.pem\".\n\nRestrictions:\n    - The option -s is only supported on PHP 5.6.0 or later.\n    - Access logs will not be displayed on Windows.\n\nusername@localhost:~$\n```\n\n## Note for Windows users\n\nUnfortunately, `cmd.exe` has no option to run via shebang `#!/usr/bin/env php`, so you need to create the following batch file in the proper directory.\n\n### For Standalone PHP\n\n```bat\n@echo OFF\n\"C:\\php\\php.exe\" \"%HOMEPATH%\\.composer\\vendor\\horizom\\dev-server\\horizom-serve\" %*\n```\n\n### For XAMPP\n\n```bat\n@echo OFF\n\"C:\\xampp\\php\\php.exe\" \"%HOMEPATH%\\.composer\\vendor\\horizom\\dev-server\\horizom-serve\" %*\n```\n\n## License\n\n[MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorizom%2Fdev-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorizom%2Fdev-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorizom%2Fdev-server/lists"}