{"id":26486613,"url":"https://github.com/brokeyourbike/data-transfer-object-php","last_synced_at":"2026-05-20T03:10:13.443Z","repository":{"id":45176089,"uuid":"439701538","full_name":"brokeyourbike/data-transfer-object-php","owner":"brokeyourbike","description":"Return original response alongside with the data transfer object","archived":false,"fork":false,"pushed_at":"2023-05-20T11:36:14.000Z","size":34,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-29T00:29:56.773Z","etag":null,"topics":["dto","dto-entity-mapper","dto-pattern","hacktoberfest","php","php8","response"],"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":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-18T19:46:57.000Z","updated_at":"2023-10-22T14:44:44.000Z","dependencies_parsed_at":"2022-09-24T19:50:24.815Z","dependency_job_id":null,"html_url":"https://github.com/brokeyourbike/data-transfer-object-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/brokeyourbike/data-transfer-object-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fdata-transfer-object-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fdata-transfer-object-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fdata-transfer-object-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fdata-transfer-object-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brokeyourbike","download_url":"https://codeload.github.com/brokeyourbike/data-transfer-object-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fdata-transfer-object-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33244167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"online","status_checked_at":"2026-05-20T02:00:07.149Z","response_time":356,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dto","dto-entity-mapper","dto-pattern","hacktoberfest","php","php8","response"],"created_at":"2025-03-20T06:20:05.671Z","updated_at":"2026-05-20T03:10:13.427Z","avatar_url":"https://github.com/brokeyourbike.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-transfer-object\n\n[![Latest Stable Version](https://img.shields.io/github/v/release/brokeyourbike/data-transfer-object-php)](https://github.com/brokeyourbike/data-transfer-object-php/releases)\n[![Total Downloads](https://poser.pugx.org/brokeyourbike/data-transfer-object/downloads)](https://packagist.org/packages/brokeyourbike/data-transfer-object)\n[![Maintainability](https://api.codeclimate.com/v1/badges/17603ef4b614ac79ea58/maintainability)](https://codeclimate.com/github/brokeyourbike/data-transfer-object-php/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/17603ef4b614ac79ea58/test_coverage)](https://codeclimate.com/github/brokeyourbike/data-transfer-object-php/test_coverage)\n\nReturn original response alongside with the [data transfer object](https://github.com/spatie/data-transfer-object)\n\n## Installation\n\n```bash\ncomposer require brokeyourbike/data-transfer-object\n```\n\n## Usage\n\n```php\nuse BrokeYourBike\\DataTransferObject\\JsonResponse;\n\nclass SomeDTO extends JsonResponse\n{\n    public string $name;\n}\n\nassert($response instanceof ResponseInterface);\n\n$dto = new SomeDTO($response);\n\nassert($response === $dto-\u003egetRawResponse());\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/data-transfer-object-php/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokeyourbike%2Fdata-transfer-object-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrokeyourbike%2Fdata-transfer-object-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokeyourbike%2Fdata-transfer-object-php/lists"}