{"id":28399708,"url":"https://github.com/brokeyourbike/json-request-result-php","last_synced_at":"2026-04-26T20:31:52.789Z","repository":{"id":62497413,"uuid":"418932032","full_name":"brokeyourbike/json-request-result-php","owner":"brokeyourbike","description":"Interface and trait for JSON responses","archived":false,"fork":false,"pushed_at":"2023-05-20T11:41:07.000Z","size":33,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-28T21:35:43.040Z","etag":null,"topics":["hacktoberfest","json","json-decoding","php","php8"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brokeyourbike.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"github":"brokeyourbike","open_collective":"brokeyourbike"}},"created_at":"2021-10-19T13:17:08.000Z","updated_at":"2023-10-22T11:07:00.000Z","dependencies_parsed_at":"2025-06-28T21:42:31.059Z","dependency_job_id":null,"html_url":"https://github.com/brokeyourbike/json-request-result-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/brokeyourbike/json-request-result-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fjson-request-result-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fjson-request-result-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fjson-request-result-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fjson-request-result-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brokeyourbike","download_url":"https://codeload.github.com/brokeyourbike/json-request-result-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fjson-request-result-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"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":["hacktoberfest","json","json-decoding","php","php8"],"created_at":"2025-06-01T08:10:30.392Z","updated_at":"2026-04-26T20:31:52.767Z","avatar_url":"https://github.com/brokeyourbike.png","language":"PHP","funding_links":["https://github.com/sponsors/brokeyourbike","https://opencollective.com/brokeyourbike"],"categories":[],"sub_categories":[],"readme":"# json-request-result\n\n[![Latest Stable Version](https://img.shields.io/github/v/release/brokeyourbike/json-request-result-php)](https://github.com/brokeyourbike/json-request-result-php/releases)\n[![Total Downloads](https://poser.pugx.org/brokeyourbike/json-request-result/downloads)](https://packagist.org/packages/brokeyourbike/json-request-result)\n[![Maintainability](https://api.codeclimate.com/v1/badges/a1f7d2769e5f738c8c2a/maintainability)](https://codeclimate.com/github/brokeyourbike/json-request-result-php/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/a1f7d2769e5f738c8c2a/test_coverage)](https://codeclimate.com/github/brokeyourbike/json-request-result-php/test_coverage)\n\nInterface and trait for JSON responses\n\n## Installation\n\n```bash\ncomposer require brokeyourbike/json-request-result\n```\n\n## Usage\n\n```php\nuse Psr\\Http\\Message\\ResponseInterface;\nuse BrokeYourBike\\JsonRequestResult\\JsonRequestResultTrait;\nuse BrokeYourBike\\JsonRequestResult\\JsonRequestResultInterface;\n\nclass Result implements JsonRequestResultInterface\n{\n    use JsonRequestResultTrait;\n\n    public function __construct(ResponseInterface $response)\n    {\n        $this-\u003estatusCode = $response-\u003egetStatusCode();\n        $this-\u003eresponseBody = (string) $response-\u003egetBody();\n    }\n}\n```\n\n## Authors\n- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk)\n\n## License\n[Mozilla Public License v2.0](https://github.com/brokeyourbike/json-request-result-php/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokeyourbike%2Fjson-request-result-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrokeyourbike%2Fjson-request-result-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokeyourbike%2Fjson-request-result-php/lists"}