{"id":23542715,"url":"https://github.com/olvlvl/doctrine-generators","last_synced_at":"2025-05-15T06:30:52.295Z","repository":{"id":57031087,"uuid":"145908909","full_name":"olvlvl/doctrine-generators","owner":"olvlvl","description":"Generators for Doctrine's hydrators and proxies.","archived":false,"fork":false,"pushed_at":"2019-10-03T06:43:38.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T09:23:22.645Z","etag":null,"topics":["doctrine","generator","hydrator","proxy"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olvlvl.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":"2018-08-23T21:26:31.000Z","updated_at":"2019-10-03T06:43:34.000Z","dependencies_parsed_at":"2022-08-23T17:40:52.479Z","dependency_job_id":null,"html_url":"https://github.com/olvlvl/doctrine-generators","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvlvl%2Fdoctrine-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvlvl%2Fdoctrine-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvlvl%2Fdoctrine-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvlvl%2Fdoctrine-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olvlvl","download_url":"https://codeload.github.com/olvlvl/doctrine-generators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254287108,"owners_count":22045851,"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":["doctrine","generator","hydrator","proxy"],"created_at":"2024-12-26T06:14:16.948Z","updated_at":"2025-05-15T06:30:52.264Z","avatar_url":"https://github.com/olvlvl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctrine Generators\n\n[![Packagist](https://img.shields.io/packagist/v/olvlvl/doctrine-generators.svg)](https://packagist.org/packages/olvlvl/doctrine-generators)\n[![Build Status](https://img.shields.io/travis/olvlvl/doctrine-generators.svg)](http://travis-ci.org/olvlvl/doctrine-generators)\n[![Code Quality](https://img.shields.io/scrutinizer/g/olvlvl/doctrine-generators.svg)](https://scrutinizer-ci.com/g/olvlvl/doctrine-generators)\n[![Code Coverage](https://img.shields.io/coveralls/olvlvl/doctrine-generators.svg)](https://coveralls.io/r/olvlvl/doctrine-generators)\n[![Downloads](https://img.shields.io/packagist/dt/olvlvl/doctrine-generators.svg)](https://packagist.org/packages/olvlvl/doctrine-generators/stats)\n\n__olvlvl/doctrine-generators__ provides generators for [Doctrine][]'s hydrators and proxies.\n\nYou can use these generators to create the hydrators and proxies required by your application before\nbuilding its artifact or container image, so it's ready to be used as soon as it's deployed.\n\n**Disclaimer**: Only MongoDB documents are currently supported.\n\n```php\n\u003c?php\n\nuse Doctrine\\ODM\\MongoDB\\Configuration;\nuse olvlvl\\DoctrineGenerators\\Document\\HydratorGenerator;\nuse olvlvl\\DoctrineGenerators\\Document\\ProxyGenerator;\n\n/* @var string $cacheDir */\n\n// An excerpt of the configuration used to create the document manager\n$config = new Configuration();\n$config-\u003esetProxyDir(\"$cacheDir/Proxies\");\n$config-\u003esetProxyNamespace('Proxies');\n$config-\u003esetAutoGenerateProxyClasses(Configuration::AUTOGENERATE_NEVER);\n$config-\u003esetHydratorDir(\"$cacheDir/Hydrators\");\n$config-\u003esetHydratorNamespace('Hydrators');\n$config-\u003esetAutoGenerateHydratorClasses(Configuration::AUTOGENERATE_NEVER);\n\n/* @var \\Doctrine\\ODM\\MongoDB\\DocumentManager $dm */\n\n$classes = (new HydratorGenerator)($dm);\n$classes = (new ProxyGenerator)($dm);\n```\n\n\n\n\n\n----------\n\n\n\n\n\n## Requirements\n\nThe package requires PHP 7.2 or later.\n\n\n\n\n\n## Installation\n\nThe recommended way to install this package is through [Composer](http://getcomposer.org/):\n\n\t$ composer require olvlvl/doctrine-generators\n\n\n\n\n\n## Testing\n\nA container is available for local development. Enter the command `make test-container` to start the\ncontainer and open a shell. The command `make test` runs the test suite. Alternatively the command\n`make test-coverage` runs the test suite and also creates an HTML coverage report in\n`build/coverage`. Dependencies are installed as required.\n\nThe package is continuously tested by [Travis CI](http://about.travis-ci.org/).\n\n[![Build Status](https://img.shields.io/travis/olvlvl/doctrine-generators.svg)](http://travis-ci.org/olvlvl/doctrine-generators)\n[![Code Coverage](https://img.shields.io/coveralls/olvlvl/doctrine-generators.svg)](https://coveralls.io/r/olvlvl/doctrine-generators)\n\n\n\n\n\n## License\n\n**olvlvl/doctrine-generators** is licensed under the New BSD License - See the [LICENSE](LICENSE) file for details.\n\n\n\n\n\n[Doctrine]: https://www.doctrine-project.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folvlvl%2Fdoctrine-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folvlvl%2Fdoctrine-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folvlvl%2Fdoctrine-generators/lists"}