{"id":22180074,"url":"https://github.com/pew-pew-team/hydrator","last_synced_at":"2025-03-24T18:45:00.443Z","repository":{"id":228167600,"uuid":"773327679","full_name":"pew-pew-team/hydrator","owner":"pew-pew-team","description":"Hydrator kernel component","archived":false,"fork":false,"pushed_at":"2024-03-17T12:55:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T14:38:31.162Z","etag":null,"topics":["data","deserializer","dto","hydrator","kernel","mapper","mapping","serializer","structure"],"latest_commit_sha":null,"homepage":"","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/pew-pew-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-03-17T11:22:20.000Z","updated_at":"2024-03-17T11:40:21.000Z","dependencies_parsed_at":"2024-03-17T12:17:30.838Z","dependency_job_id":"84581549-40bf-4ccc-b006-fd4a596f956e","html_url":"https://github.com/pew-pew-team/hydrator","commit_stats":null,"previous_names":["pew-pew-team/hydrator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pew-pew-team%2Fhydrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pew-pew-team%2Fhydrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pew-pew-team%2Fhydrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pew-pew-team%2Fhydrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pew-pew-team","download_url":"https://codeload.github.com/pew-pew-team/hydrator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245331242,"owners_count":20597931,"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","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","deserializer","dto","hydrator","kernel","mapper","mapping","serializer","structure"],"created_at":"2024-12-02T09:16:49.039Z","updated_at":"2025-03-24T18:45:00.412Z","avatar_url":"https://github.com/pew-pew-team.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/pew-pew-team\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/pew-pew-team/.github/master/assets/logo.svg\" width=\"128\" height=\"128\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/pew-pew/hydrator\"\u003e\u003cimg src=\"https://poser.pugx.org/pew-pew/hydrator/require/php?style=for-the-badge\" alt=\"PHP 8.3+\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/pew-pew/hydrator\"\u003e\u003cimg src=\"https://poser.pugx.org/pew-pew/hydrator/version?style=for-the-badge\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/pew-pew/hydrator\"\u003e\u003cimg src=\"https://poser.pugx.org/pew-pew/hydrator/v/unstable?style=for-the-badge\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/pew-pew-team/hydrator/blob/master/LICENSE\"\u003e\u003cimg src=\"https://poser.pugx.org/pew-pew/hydrator/license?style=for-the-badge\" alt=\"License MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/pew-pew-team/hydrator/actions\"\u003e\u003cimg src=\"https://github.com/pew-pew-team/hydrator/workflows/tests/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/pew-pew-team/hydrator/actions\"\u003e\u003cimg src=\"https://github.com/pew-pew-team/hydrator/workflows/codestyle/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/pew-pew-team/hydrator/actions\"\u003e\u003cimg src=\"https://github.com/pew-pew-team/hydrator/workflows/security/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/pew-pew-team/hydrator/actions\"\u003e\u003cimg src=\"https://github.com/pew-pew-team/hydrator/workflows/static-analysis/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Hydrator\n\nA set of interfaces for mapping arbitrary values to their typed equivalents\nand their inverses.\n\n## Installation\n\nPewPew Hydrator is available as Composer repository and can be installed using \nthe following command in a root of your project:\n\n```bash\n$ composer require pew-pew/hydrator\n```\n\nMore detailed installation [instructions are here](https://getcomposer.org/doc/01-basic-usage.md).\n\n## Usage\n\n```php\n$hydrator = new class implements \\PewPew\\Hydrator\\HydratorInterface {\n    public function hydrate(string $type, mixed $data): mixed\n    {\n         return ...;\n    }\n};\n\n$hydrator = new \\PewPew\\Hydrator\\TraceableHydrator(\n    hydrator: $hydrator,\n    stopwatch: new \\Symfony\\Component\\Stopwatch\\Stopwatch(),\n);\n\n$hydrator = new \\PewPew\\Hydrator\\LoggableHydrator(\n    hydrator: $hydrator,\n    logger: new ExampleLogger(),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpew-pew-team%2Fhydrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpew-pew-team%2Fhydrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpew-pew-team%2Fhydrator/lists"}