{"id":36983077,"url":"https://github.com/jderstd/psr","last_synced_at":"2026-01-13T22:55:08.193Z","repository":{"id":329930028,"uuid":"1115777761","full_name":"jderstd/psr","owner":"jderstd","description":"A response builder for PSR","archived":false,"fork":false,"pushed_at":"2025-12-23T08:55:44.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T21:55:28.822Z","etag":null,"topics":["builder","jder","json","php","psr","response"],"latest_commit_sha":null,"homepage":"https://github.com/jderstd/psr/blob/main/docs/README.md","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/jderstd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-13T14:33:38.000Z","updated_at":"2025-12-23T08:55:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jderstd/psr","commit_stats":null,"previous_names":["jderstd/psr"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jderstd/psr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderstd%2Fpsr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderstd%2Fpsr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderstd%2Fpsr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderstd%2Fpsr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jderstd","download_url":"https://codeload.github.com/jderstd/psr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderstd%2Fpsr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["builder","jder","json","php","psr","response"],"created_at":"2026-01-13T22:55:08.112Z","updated_at":"2026-01-13T22:55:08.183Z","avatar_url":"https://github.com/jderstd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JDER PSR\n\nA response builder for PSR.\n\nThis package includes different response builders based on the JSON response structure specified in [JSON Data Errors Response (JDER)](https://github.com/jderstd/spec). With the builders, various kinds of responses can be created easily instead of sending plain text responses.\n\n## Installation\n\nInstall this package as a dependency in the project:\n\n```sh\ncomposer require jder/psr\n```\n\n## Quick Start\n\nTo create a JSON response, use the following code:\n\n```php\nuse Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse Psr\\Http\\Message\\ResponseInterface as Response;\nuse Jder\\Psr\\Json\\CreateJsonResponse;\n\nfunction route(\n    Request $request,\n    Response $response,\n): Response {\n    return CreateJsonResponse::success($response)-\u003ecreate();\n}\n```\n\nAnd the response will be shown as below:\n\n```json\n{\n    \"success\": true,\n    \"data\": null,\n    \"errors\": []\n}\n```\n\n## Documentation\n\nFor the documentation,please refer to the \n[documentation](https://github.com/jderstd/psr/blob/main/docs/README.md).\n\n## Contributing\n\nFor contributing, please refer to the \n[contributing guide](https://github.com/jderstd/psr/blob/main/CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjderstd%2Fpsr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjderstd%2Fpsr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjderstd%2Fpsr/lists"}