{"id":15169570,"url":"https://github.com/nowiko/edbfixturemanager","last_synced_at":"2026-02-02T20:35:59.662Z","repository":{"id":145445159,"uuid":"45000584","full_name":"nowiko/EDbFixtureManager","owner":"nowiko","description":"Tool which provides an ability to use fixtures with Yii 1.1 framework","archived":false,"fork":false,"pushed_at":"2017-11-16T20:22:15.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-05T06:17:15.796Z","etag":null,"topics":["fixture-loader","fixtures","php","yii-extension","yii-framework"],"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/nowiko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-26T22:12:02.000Z","updated_at":"2017-11-16T20:23:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d68b2cd1-d948-4010-b6d8-bec7f83f576b","html_url":"https://github.com/nowiko/EDbFixtureManager","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/nowiko%2FEDbFixtureManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowiko%2FEDbFixtureManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowiko%2FEDbFixtureManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowiko%2FEDbFixtureManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowiko","download_url":"https://codeload.github.com/nowiko/EDbFixtureManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252699487,"owners_count":21790679,"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":["fixture-loader","fixtures","php","yii-extension","yii-framework"],"created_at":"2024-09-27T07:03:54.904Z","updated_at":"2026-02-02T20:35:59.596Z","avatar_url":"https://github.com/nowiko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NovikovViktor/EDbFixtureManager/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/NovikovViktor/EDbFixtureManager/?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/96bfb98dce5f5404d571/maintainability)](https://codeclimate.com/github/NovikovViktor/EDbFixtureManager/maintainability)\n\nEDbFixtureManager v1.0\n==================================\nIs a tool which provides an ability to use fixtures with Yii framework.\n\n### Note:\n\n1) All attributes you want to fill via fixtures data, must be defined with `safe` validation rule (`rules()` method);\n2) Don't forget configure `tablePrefix` option for `db` connection definition;\n3) Your tables will be purged when you loading fixtures;\n\n### Basic usage:\n1) Download extension and place it in `extensions` directory;\n\n2) Create file `fixtures.php`, with content, what will be looks like this:\n``` php\n\u003c?php\nreturn array(\n    'ModelClassName' =\u003e array(\n        'modelInstanceId' =\u003e array(\n            'field1' =\u003e 'value1',\n            'field2' =\u003e 'value2',\n            ...\n        ),\n        ...\n    ),\n    ...\n);\n```\n\n3) Make sure that you have configured database for console application.\nAdd the following code to your console config:\n\n``` php\n...\n'commandMap' =\u003e array(\n        'fixtures' =\u003e array(\n            'class'          =\u003e 'ext.fixture_manager.EDbFixtureManager', // import class of console command\n            'pathToFixtures' =\u003e '/path/to/fixtures.php', // pass the path to your fixtures file\n            'modelsFolder'   =\u003e 'application.models.*', // specify the folder where your models classes lays\n        ),\n),\n...\n```\n\nNOTE. If you have a multiple models folder you can specify `modelsFolder` as an array.\nE.g. ` 'modelsFolder'   =\u003e array('application.models.*', 'application.modules.user.models.*') ,`\n\n4) Run command: `php path/to/yiic fixtures load` ;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowiko%2Fedbfixturemanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowiko%2Fedbfixturemanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowiko%2Fedbfixturemanager/lists"}