{"id":20737102,"url":"https://github.com/phpexpertsinc/php-test-server","last_synced_at":"2026-01-07T22:50:56.579Z","repository":{"id":257284859,"uuid":"857815959","full_name":"PHPExpertsInc/php-test-server","owner":"PHPExpertsInc","description":"A quick and easy standard pure PHP HTTP REST API Test Server.","archived":false,"fork":false,"pushed_at":"2024-09-15T17:36:55.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2024-09-15T18:56:44.988Z","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":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHPExpertsInc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T17:22:05.000Z","updated_at":"2024-09-15T17:36:59.000Z","dependencies_parsed_at":"2024-09-15T18:56:49.170Z","dependency_job_id":"a892a981-0a0b-4aea-b450-8fafeec0435b","html_url":"https://github.com/PHPExpertsInc/php-test-server","commit_stats":null,"previous_names":["phpexpertsinc/php-test-server"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphp-test-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphp-test-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphp-test-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphp-test-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPExpertsInc","download_url":"https://codeload.github.com/PHPExpertsInc/php-test-server/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253507301,"owners_count":21919188,"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-11-17T06:13:33.649Z","updated_at":"2026-01-07T22:50:56.550Z","avatar_url":"https://github.com/PHPExpertsInc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP API Test Server\n\nPHP API Test Server is a PHP Experts, Inc., Project meant to ease the testing of HTTP clients\nand REST clients.\n\nIt is more or less an echo server. It supports all major HTTP verbs:\n\nGET, POST, PUT, PATCH, and DELETE\n\n## Installation\n\nVia Composer\n\n```bash\ncomposer require --dev phpexperts/php-test-server\n```\n\n## Usage\n\nThe default port the server listens to is 127.0.0.5:49519.\n\nTo run standalone:\n\n    bin/php-test-server [PORT]\n\nTo run in a PHP script:\n\n    TestApiRestServer::runForked(45192);\n    TestApiRestServer::shutdown();\n\nTo run as part of PHPUnit:\n\n    class MyApiTest extends TestApiServerTestCase\n    {\n    }\n\n## Use cases\n\nApi Rest Server Binary (PHPExperts\\PHPTestServer\\Tests\\ApiRestServerBinary)  \n ✔ Can launch the standalone test server  \n ✔ It is an HTTP server  \n ✔ Can shut down the test server  \n\nApi Rest Server (PHPExperts\\PHPTestServer\\Tests\\ApiRestServer)  \n ✔ Can launch the test server  \n ✔ It is an HTTP server  \n ✔ It supports the GET, POST, PUT, PATCH, and DELETE HTTP verbs  \n ✔ Can shut down the HTTP server  \n\nApi Server Test Case (PHPExperts\\PHPTestServer\\Tests\\ApiServerTestCase)  \n ✔ Accepts GET requests  \n ✔ Accepts POST requests  \n ✔ Accepts PUT requests  \n ✔ Accepts PATCH requests  \n ✔ Accepts DELETE requests  \n\n## Testing\n\n```bash\nphpunit --testdox\n```\n\n# License\n\nThis project is licensed under the [Creative Commons Attribution License v4.0 International](LICENSE.md).\n\n![CC.by License Summary](https://user-images.githubusercontent.com/1125541/93617603-cd6de580-f99b-11ea-9da4-f79c168c97df.png)\n\n# About The Author\n\n[Theodore R. Smith](https://www.phpexperts.pro/]) \u003ctheodore@phpexperts.pro\u003e  \nGPG Fingerprint: 4BF8 2613 1C34 87AC D28F  2AD8 EB24 A91D D612 5690  \nCEO: PHP Experts, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fphp-test-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpexpertsinc%2Fphp-test-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fphp-test-server/lists"}