{"id":33962413,"url":"https://github.com/4lb0/phps","last_synced_at":"2026-04-02T01:01:37.679Z","repository":{"id":56938387,"uuid":"423358305","full_name":"4lb0/phps","owner":"4lb0","description":"PHP Server: An improvement for the built-in web server. It uses 8080 port by default or set option -r to use a random port. Also run LiveReload if available.","archived":false,"fork":false,"pushed_at":"2021-12-01T11:53:03.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-14T10:35:26.719Z","etag":null,"topics":["php","server","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/4lb0.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":"2021-11-01T06:20:31.000Z","updated_at":"2021-12-01T11:52:57.000Z","dependencies_parsed_at":"2022-08-21T01:40:28.125Z","dependency_job_id":null,"html_url":"https://github.com/4lb0/phps","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/4lb0/phps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4lb0%2Fphps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4lb0%2Fphps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4lb0%2Fphps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4lb0%2Fphps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4lb0","download_url":"https://codeload.github.com/4lb0/phps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4lb0%2Fphps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["php","server","utility"],"created_at":"2025-12-12T22:02:05.406Z","updated_at":"2026-04-02T01:01:37.662Z","avatar_url":"https://github.com/4lb0.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Server\n\n![Usage screenshot](https://user-images.githubusercontent.com/142173/139636053-e3d177a7-1cab-4012-bd17-a203869eaa5a.png)\n\nAn improvement for the [built-in web server](https://www.php.net/manual/en/features.commandline.webserver.php). \n\nIt uses 8080 port by default or set option `-r` to use a random port.\n\nAlso run [LiveReload](https://www.npmjs.com/package/livereload) if available.\n\n**Usage:**\n\n    phps [-r] [-t docroot] [router]\n\n**Options:**\n\n* `-r, --random`\tRun PHP and Livereload on random ports.\n* `-t, --docroot`\tStarting with a specific document root directory\n* `-h, --help`\tShow this help\n\n**Set up:**\n\nUse composer \n\n    composer global require 4lb0/phps\n\nOr download the [phps](/phps) file.\n\n**Save parameters in composer.json**\n\nYou may add `[-t docroot] [router]` in a custom key  `phps` in the `extra` section of your composer.json.\n\nFor example if you run it `phps -r -t public app.php` add the following configuration to your composer.json and then run it with just `php -r`\n\n    \"extra\": {\n      \"phps\": \n        \"router\": \"app.php\",\n        \"docroot\": \"public/\",\n        \"config\": \"etc/php.ini\",\n        \"extraExtensions\": \"scss,phtml\"\n    }\n\n\n**Requirements:**\n\n* PHP version 5.4 or newer versions\n* Bash support\n* Optional: [LiveReload](https://www.npmjs.com/package/livereload)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4lb0%2Fphps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4lb0%2Fphps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4lb0%2Fphps/lists"}