{"id":16487726,"url":"https://github.com/oligus/doctrine-fixtures","last_synced_at":"2026-02-04T14:31:30.696Z","repository":{"id":57030978,"uuid":"206858059","full_name":"oligus/doctrine-fixtures","owner":"oligus","description":"Doctrine fixtures","archived":false,"fork":false,"pushed_at":"2019-12-14T22:22:40.000Z","size":111,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-12T10:48:12.296Z","etag":null,"topics":["database","doctrine","fixture-data","mock-data"],"latest_commit_sha":null,"homepage":null,"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/oligus.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":"2019-09-06T19:07:18.000Z","updated_at":"2022-05-09T13:11:41.000Z","dependencies_parsed_at":"2022-08-23T18:50:38.223Z","dependency_job_id":null,"html_url":"https://github.com/oligus/doctrine-fixtures","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oligus%2Fdoctrine-fixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oligus%2Fdoctrine-fixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oligus%2Fdoctrine-fixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oligus%2Fdoctrine-fixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oligus","download_url":"https://codeload.github.com/oligus/doctrine-fixtures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230183637,"owners_count":18186338,"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":["database","doctrine","fixture-data","mock-data"],"created_at":"2024-10-11T13:35:41.282Z","updated_at":"2026-02-04T14:31:25.669Z","avatar_url":"https://github.com/oligus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctrine fixtures\n\nSimple fixture loader for Doctrine.\n\n[![Build Status](https://travis-ci.org/oligus/doctrine-fixtures.svg?branch=master)](https://travis-ci.org/oligus/doctrine-fixtures)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Codecov.io](https://codecov.io/gh/oligus/doctrine-fixtures/branch/master/graphs/badge.svg)](https://codecov.io/gh/oligus/doctrine-fixtures)\n[![Maintainability](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/oligus/doctrine-fixtures/maintainability)\n\nLoad XML fixtures into database using entity manager.\n\n## Quick start\n\n```bash\n$ composer require oligus/doctrine-fixtures --dev\n```\n\n*Load all fixtures in a directory*\n```php\n$fixture = new FixtureManager($em, new XmlLoader('path/to/fixtures'));\n$fixture-\u003eloadAll();\n```\n\n*Load a single fixture file*\n```php\n$fixture = new FixtureManager($em, new XmlLoader());\n$fixture-\u003eloadFile('path/to/fixtures/data_table.xml');\n```\n\n### Availible Loaders\n\n* Xml Loader\n* Csv Loader\n\n## Fixtures\n\n#### Creating XML fixture from mysql database\n\n```bash\n$ mysqldump -h localhost -u username --password=password --xml -t database data_table --where=\"id='1'\"\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foligus%2Fdoctrine-fixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foligus%2Fdoctrine-fixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foligus%2Fdoctrine-fixtures/lists"}