{"id":19694552,"url":"https://github.com/vaneves/collection-extractor","last_synced_at":"2026-05-07T16:18:57.229Z","repository":{"id":57076834,"uuid":"43013333","full_name":"vaneves/collection-extractor","owner":"vaneves","description":"Doctrine Collection Extractor","archived":false,"fork":false,"pushed_at":"2015-09-23T17:02:42.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T09:21:31.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaneves.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":"2015-09-23T16:32:41.000Z","updated_at":"2015-09-23T17:00:26.000Z","dependencies_parsed_at":"2022-08-24T14:55:56.247Z","dependency_job_id":null,"html_url":"https://github.com/vaneves/collection-extractor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fcollection-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fcollection-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fcollection-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fcollection-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaneves","download_url":"https://codeload.github.com/vaneves/collection-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241005404,"owners_count":19892784,"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":[],"created_at":"2024-11-11T19:23:30.384Z","updated_at":"2026-05-07T16:18:52.191Z","avatar_url":"https://github.com/vaneves.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctrine Collection Extractor\n\n## Installing\n\nVia Composer\n\n```\ncomposer require vaneves/collection-extractor\n```\n\n## Usage\n\n``` php\n\nuse Silex\\Application;\nuse DoctrineModule\\Stdlib\\Hydrator\\DoctrineObject as DoctrineHydrator;\nuse Vaneves\\Doctrine\\CollectionExtractor;\n\n$app = new Application();\n$app['debug'] = true;\n\n$app-\u003eget('/blog/posts', function () use ($app) {\n\n\t$em = $app['orm.em'];\n\t\n\t$results = $em-\u003egetRepository('App\\Entities\\Post')-\u003efindAll();\n\n\t$hydrator = new CollectionExtractor(new DoctrineHydrator($em));\n\n\treturn $app-\u003ejson($hydrator-\u003eextract($results));\n});\n\n$app-\u003erun();\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Fcollection-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaneves%2Fcollection-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Fcollection-extractor/lists"}