{"id":19004909,"url":"https://github.com/codeedu/zend-doctrine-fixture","last_synced_at":"2025-09-02T00:38:56.786Z","repository":{"id":56955043,"uuid":"69125710","full_name":"codeedu/zend-doctrine-fixture","owner":"codeedu","description":"Zend Framework Library that provides Doctrine Data-Fixture functionality","archived":false,"fork":false,"pushed_at":"2019-07-17T21:03:31.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-18T15:52:12.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeedu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-24T20:23:58.000Z","updated_at":"2019-07-17T21:02:39.000Z","dependencies_parsed_at":"2022-08-21T08:50:22.353Z","dependency_job_id":null,"html_url":"https://github.com/codeedu/zend-doctrine-fixture","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/codeedu/zend-doctrine-fixture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeedu%2Fzend-doctrine-fixture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeedu%2Fzend-doctrine-fixture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeedu%2Fzend-doctrine-fixture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeedu%2Fzend-doctrine-fixture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeedu","download_url":"https://codeload.github.com/codeedu/zend-doctrine-fixture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeedu%2Fzend-doctrine-fixture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273213951,"owners_count":25065059,"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-09-01T02:00:09.058Z","response_time":120,"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":[],"created_at":"2024-11-08T18:25:18.185Z","updated_at":"2025-09-02T00:38:56.765Z","avatar_url":"https://github.com/codeedu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\n\nThis library provides integration with Zend Framework and Doctrine Data Fixture. Also support PSR-11.\nIt's based in [zendexpr-doctrine-fixture](https://github.com/codeedu/zendexpr-doctrine-fixture.git)\n\n## Get started\n\n##### Instalation\n```sh\ncomposer require codeedu/zend-doctrine-fixture:0.0.1\n```\n\n##### Registering Fixtures\n\nTo register fixtures add the fixtures in your configuration.\n\n```php\n[\n      'doctrine' =\u003e [\n            'fixtures' =\u003e [\n                  'MyFixtures' =\u003e __DIR__ . '/../src/Fixture',\n            ]\n      ]\n];\n```\n\nRegister the module in modules.config.php:\n\n```php\n      'CodeEdu\\DoctrineFixture'\n```\n\n## Usage\n\n#### Command Line\nAccess the Doctrine command line as following\n\n#### Import\n```sh\n./vendor/bin/doctrine-module data-fixture:import\n```\n\n## Dependency Injection with Fixtures\n\nThis library provides inject the service container in fixtures. So add interface **FixtureContainerInterface**, see below:\n\n```php\nclass MyFixture implements FixtureInterface, FixtureContainerInterface\n{\n    private $container;\n\n    public function load(ObjectManager $manager){\n        $myService = $this-\u003econtainer-\u003eget(MyService::class);\n    }\n\n    public function getContainer()\n    {\n        return $this-\u003econtainer;\n    }\n\n    public function setContainer(ContainerInterface $container)\n    {\n        $this-\u003econtainer = $container;\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeedu%2Fzend-doctrine-fixture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeedu%2Fzend-doctrine-fixture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeedu%2Fzend-doctrine-fixture/lists"}