{"id":26452105,"url":"https://github.com/freeelephants/json-api-dto","last_synced_at":"2025-08-02T08:04:09.214Z","repository":{"id":282234070,"uuid":"947856481","full_name":"FreeElephants/json-api-dto","owner":"FreeElephants","description":"JsonApi Document Structure Types","archived":false,"fork":false,"pushed_at":"2025-06-26T13:10:05.000Z","size":47,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T15:46:28.643Z","etag":null,"topics":["data-transfer-object","jsonapi","jsonapi-resources","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FreeElephants.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-13T11:01:20.000Z","updated_at":"2025-04-06T11:57:21.000Z","dependencies_parsed_at":"2025-03-13T13:52:07.856Z","dependency_job_id":null,"html_url":"https://github.com/FreeElephants/json-api-dto","commit_stats":null,"previous_names":["freeelephants/json-api-dto"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/FreeElephants/json-api-dto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeElephants%2Fjson-api-dto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeElephants%2Fjson-api-dto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeElephants%2Fjson-api-dto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeElephants%2Fjson-api-dto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreeElephants","download_url":"https://codeload.github.com/FreeElephants/json-api-dto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeElephants%2Fjson-api-dto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268351015,"owners_count":24236329,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":["data-transfer-object","jsonapi","jsonapi-resources","php"],"created_at":"2025-03-18T17:26:17.109Z","updated_at":"2025-08-02T08:04:09.180Z","avatar_url":"https://github.com/FreeElephants.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Api Toolkit\n\n[![Build Status](https://github.com/FreeElephants/json-api-dto/workflows/CI/badge.svg)](https://github.com/FreeElephants/json-api-dto/actions)\n[![codecov](https://codecov.io/gh/FreeElephants/json-api-dto/branch/master/graph/badge.svg)](https://codecov.io/gh/FreeElephants/json-api-dto)\n[![Installs](https://img.shields.io/packagist/dt/free-elephants/json-api-dto.svg)](https://packagist.org/packages/free-elephants/json-api-dto)\n[![Releases](https://img.shields.io/packagist/v/free-elephants/json-api-dto.svg)](https://github.com/FreeElephants/json-api-dto/releases)\n\n## Features: \n\nBuild Data Transfer Objects from PSR7 Messages.\n\nFull typed objects from request or response body.\n\nSee example in [test](/tests/FreeElephants/JsonApiToolkit/DTO/DocumentTest.php).\n\nUnion types support for relationships in PHP 8.\n\n\n## Usage\n\nExtend super types in your own json api documents and it's parts:\n- \\FreeElephants\\JsonApi\\DTO\\AbstractAttributes\n- \\FreeElephants\\JsonApi\\DTO\\AbstractDocument\n- \\FreeElephants\\JsonApi\\DTO\\AbstractRelationships\n- \\FreeElephants\\JsonApi\\DTO\\AbstractResourceObject\n\nAnd use as properties types: \n- \\FreeElephants\\JsonApi\\DTO\\RelationshipToOne\n- \\FreeElephants\\JsonApi\\DTO\\ResourceIdentifierObject\n\nSee tests/ for more examples.  \n\n### Install\n\n`composer require free-elephants/json-api-dto`\n\n## Development\n\nAll dev env is dockerized. Your can use make receipts and `bin/` scripts without locally installed php, composer. \n\nFor run tests with different php version change `PHP_VERSION` value in .env and rebuild image with `make build`.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreeelephants%2Fjson-api-dto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreeelephants%2Fjson-api-dto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreeelephants%2Fjson-api-dto/lists"}