{"id":42362305,"url":"https://github.com/phramework/testphase","last_synced_at":"2026-01-27T17:13:55.457Z","repository":{"id":57041089,"uuid":"46678784","full_name":"phramework/testphase","owner":"phramework","description":"API response testing tool","archived":false,"fork":false,"pushed_at":"2017-01-29T23:34:12.000Z","size":307,"stargazers_count":3,"open_issues_count":24,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-30T17:39:10.753Z","etag":null,"topics":["http-client","restful-api","testing-tools"],"latest_commit_sha":null,"homepage":"https://phramework.github.io/testphase/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phramework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-22T20:34:11.000Z","updated_at":"2016-02-17T22:01:00.000Z","dependencies_parsed_at":"2022-08-23T23:30:43.818Z","dependency_job_id":null,"html_url":"https://github.com/phramework/testphase","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/phramework/testphase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Ftestphase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Ftestphase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Ftestphase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Ftestphase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phramework","download_url":"https://codeload.github.com/phramework/testphase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Ftestphase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":["http-client","restful-api","testing-tools"],"created_at":"2026-01-27T17:13:55.218Z","updated_at":"2026-01-27T17:13:55.450Z","avatar_url":"https://github.com/phramework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testphase\nAPI testing environment build for phramework and RESTful APIs\n\n[![Coverage Status](https://coveralls.io/repos/phramework/testphase/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/phramework/testphase?branch=master) [![Build Status](https://travis-ci.org/phramework/testphase.svg?branch=master)](https://travis-ci.org/phramework/testphase)\n[![StyleCI](https://styleci.io/repos/46678784/shield)](https://styleci.io/repos/46678784)\n\n## Usage\nRequire package using composer\n\n```bash\ncomposer require phramework/testphase\n```\n\n### Execute tests written in JSON files using command line\n\n```\n./vendon/bin/testphase help -b ./bootstrap.php -d ./tests-directory/\n```\n\nInside your `bootstrap.php` file you MAY use the `Testphase::setBase` method to set the base url of your API. For example: `Testphase::setBase('http://localhost/myapp/api/');`\n\n### Execute tests in PHP scripts\n\n```php\n$test = (new Testphase(\n    'posts/notFound',\n    'GET',\n    [\n        'Accept: application/json'\n    ]\n))\n-\u003eexpectStatusCode(404)\n-\u003eexpectJSON()\n-\u003erun();\n```\n\n## Development\n### Install\n\n```bash\ncomposer update\n```\n\n### Lint and test code\n\n```bash\ncomposer lint\ncomposer test\n```\n\nTesting relies on [JSONPlaceholder](http://jsonplaceholder.typicode.com/) service.\n\n### Generate documentation\n\n```bash\ncomposer doc\n```\n\n## License\nCopyright 2015 - 2016 Xenofon Spafaridis\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n```\nhttp://www.apache.org/licenses/LICENSE-2.0\n```\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Ftestphase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphramework%2Ftestphase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Ftestphase/lists"}