{"id":37006186,"url":"https://github.com/rostym/hydrator","last_synced_at":"2026-01-14T00:44:52.425Z","repository":{"id":57009193,"uuid":"83238910","full_name":"rostym/hydrator","owner":"rostym","description":"This is a simple library which provide you possibility to hydrate and extract an object properties (private, protected) without using reflection.","archived":false,"fork":false,"pushed_at":"2017-03-04T22:11:56.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-20T03:21:10.988Z","etag":null,"topics":["extract-data","hydrate","hydration","hydrator","library","php"],"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/rostym.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}},"created_at":"2017-02-26T20:36:42.000Z","updated_at":"2017-03-24T14:54:06.000Z","dependencies_parsed_at":"2022-08-21T14:50:50.876Z","dependency_job_id":null,"html_url":"https://github.com/rostym/hydrator","commit_stats":null,"previous_names":["krifollk/hydrator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rostym/hydrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostym%2Fhydrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostym%2Fhydrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostym%2Fhydrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostym%2Fhydrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rostym","download_url":"https://codeload.github.com/rostym/hydrator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostym%2Fhydrator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["extract-data","hydrate","hydration","hydrator","library","php"],"created_at":"2026-01-14T00:44:51.693Z","updated_at":"2026-01-14T00:44:52.414Z","avatar_url":"https://github.com/rostym.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hydrator library \n[![Build Status](https://travis-ci.org/Krifollk/hydrator.svg?branch=master)](https://travis-ci.org/Krifollk/hydrator)\n\nThis is a simple library which provide you possibility to hydrate and extract an object properties (private, protected) without using reflection.\n\n## Requirements\n- PHP 7 and higher\n\n## Installation\n\nInstall the latest version with\n\n```bash\n$ composer require krifollk/hydrator\n```\n\n## Usage Example\n\nExample of hydration an object\n```php\n\u003c?php\n\nclass User \n{\n    private $name;\n    protected $surname;\n}\n\n$hydrator = new Krifollk\\Hydrator\\Hydrator();\n$user = new User();\n\n$hydrator-\u003ehydrate($user, ['name' =\u003e 'John', 'surname' =\u003e 'Doe']);\n\nprint_r($user);\n\n```\nOutput:\n\n```\nUser Object\n(\n    [name:User:private] =\u003e John\n    [surname:protected] =\u003e Doe\n)\n\n```\nExample of extracting properties from an object\n\n```php\n\u003c?php\n\nclass User\n{\n    private $name = 'John';\n    protected $surname = 'Doe';\n}\n\n\n$hydrator = new Krifollk\\Hydrator\\PropertyExtractor();\n$user = new User();\n\n$result = $hydrator-\u003eextractProperties($user, ['name', 'surname']);\n\nprint_r($result);\n\n```\nOutput:\n```\nArray\n(\n    [name] =\u003e John\n    [surname] =\u003e Doe\n)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frostym%2Fhydrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frostym%2Fhydrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frostym%2Fhydrator/lists"}