{"id":16186905,"url":"https://github.com/robloach/httpserver","last_synced_at":"2025-04-07T13:26:28.047Z","repository":{"id":4948714,"uuid":"6105981","full_name":"RobLoach/httpserver","owner":"RobLoach","description":"PHP 5.4 HTTP Server wrapper.","archived":false,"fork":false,"pushed_at":"2012-10-11T17:31:03.000Z","size":108,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T18:02:01.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RobLoach.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":"2012-10-06T19:26:22.000Z","updated_at":"2013-12-28T17:32:34.000Z","dependencies_parsed_at":"2022-09-13T19:00:29.279Z","dependency_job_id":null,"html_url":"https://github.com/RobLoach/httpserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fhttpserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fhttpserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fhttpserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fhttpserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/httpserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247659469,"owners_count":20974724,"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","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":[],"created_at":"2024-10-10T07:19:48.897Z","updated_at":"2025-04-07T13:26:28.024Z","avatar_url":"https://github.com/RobLoach.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"HttpServer\n==========\n\nA wrapper around PHP 5.4's HTTP Server.\n\n\nRequirements\n------------\n\n* PHP 5.4\n\n\nInstallation\n------------\n\nIn your [composer.json](http://getcomposer.org), add the following:\n\n    \"require\" {\n        \"robloach/httpserver\": \"*\"\n    }\n\n\nUsage\n-----\n\n```php\n// Set up the HTTP web server.\n$server = new HttpServer\\HttpServer('/var/www', 'localhost', 8080);\n$server-\u003estart();\n\n// Do something with it.\n$contents = file_get_contents('http://localhost:8080/example.php');\n\n// Now that we've done something, let's shut it down.\n$server-\u003estop();\n```\n\n\nTesting\n-------\n\n    php composer.phar install --dev\n    php vendor/bin/phpunit","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fhttpserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Fhttpserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fhttpserver/lists"}