{"id":16847733,"url":"https://github.com/ravage84/cakephp-fake-seeder","last_synced_at":"2025-03-22T05:31:27.983Z","repository":{"id":62533518,"uuid":"41644333","full_name":"ravage84/cakephp-fake-seeder","owner":"ravage84","description":"A CakePHP shell to seed your database with fake and/or fixed data.","archived":false,"fork":false,"pushed_at":"2022-03-04T10:39:59.000Z","size":46,"stargazers_count":10,"open_issues_count":3,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-20T15:40:17.514Z","etag":null,"topics":["cakephp","cakephp-plugin","fake","seeder"],"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/ravage84.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-30T21:54:32.000Z","updated_at":"2023-06-19T00:44:40.000Z","dependencies_parsed_at":"2022-11-02T16:01:11.453Z","dependency_job_id":null,"html_url":"https://github.com/ravage84/cakephp-fake-seeder","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/ravage84%2Fcakephp-fake-seeder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravage84%2Fcakephp-fake-seeder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravage84%2Fcakephp-fake-seeder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravage84%2Fcakephp-fake-seeder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ravage84","download_url":"https://codeload.github.com/ravage84/cakephp-fake-seeder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"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":["cakephp","cakephp-plugin","fake","seeder"],"created_at":"2024-10-13T13:08:55.195Z","updated_at":"2025-03-22T05:31:26.566Z","avatar_url":"https://github.com/ravage84.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CakePHP Fake Seeder\n\n[![Travis-CI Build Status](https://travis-ci.org/ravage84/cakephp-fake-seeder.png)](https://travis-ci.org/ravage84/cakephp-fake-seeder)\n[![Coverage Status](https://img.shields.io/coveralls/ravage84/cakephp-fake-seeder.svg)](https://coveralls.io/r/ravage84/cakephp-fake-seeder?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ravage84/cakephp-fake-seeder/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ravage84/cakephp-fake-seeder/?branch=master)\n[![Total Downloads](https://poser.pugx.org/ravage84/cakephp-fake-seeder/d/total.png)](https://packagist.org/packages/ravage84/cakephp-fake-seeder)\n[![Latest Stable Version](https://poser.pugx.org/ravage84/cakephp-fake-seeder/v/stable.png)](https://packagist.org/packages/ravage84/cakephp-fake-seeder)\n\nA CakePHP shell to seed your database with fake and/or fixed data.\n\nUses Faker to generate the fake data.\nUses shell tasks for implementing specific seeders.\nOrganizes logical groups of seeders in custom seeder shells/suites.\n\n## Why should I use it?\n\nYou are wondering why you should use this plugin instead of using\n[Faker](https://github.com/fzaninotto/Faker) directly or\ncreating fake data on your own?\n\nThis plugin...\n\n- keeps you from doing the repetitive work (DRY)\n- provides you three working modes (manual faking to fully automatic guessing) \n- helps you to stick to conventions, by following\n  CakePHP's \"Convention over Configuration\" principle\n- still provides you flexible configuration\n- reduces documentation needs\n- is properly covered by unit tests\n- is easy to learn\n- is extensible\n\n## Installation\n\n### Requirements\n\n- PHP \u003e= 5.4\n- CakePHP 2.x (tested with 2.6.2, 2.7.3)\n\n### Installation via composer\n\n````\ncomposer require ravage84/cakephp-fake-seeder\n````\n\n### Installation alternatives\n\nRefer to the CakePHP CookBook section\n[How To Install Plugins](http://book.cakephp.org/2.0/en/plugins/how-to-install-plugins.html).\n\n## CakePHP Version Support\n\nThis plugin only supports CakePHP 2.x.\n\n## Versioning\n\nThe releases of this plugin are versioned using [SemVer](http://semver.org/).\n\n## Configuration\n\nSet the configuration key ``FakeSeeder.seedable`` to true, by adding\n``Configure::write('FakeSeeder.seedable', true);`` to your boostrap code.\n\n## How to use\n\nAfter installing and configuring the plugin, you can invoke the shell\nby executing ``php Console/cake.php FakeSeeder.seeder -h``.\n\n````\nWelcome to CakePHP v2.6.2 Console\n---------------------------------------------------------------\nApp : app\nPath: D:\\dev\\xampp\\htdocs\\cate\\app\\\n---------------------------------------------------------------\nA shell to seed your database with fake and/or fixed data.\n\nUses Faker to generate the fake data.\nUses shell tasks for implementing specific seeders.\nOrganizes logical groups of seeders in custom seeder shells/suites.\n\nUsage:\ncake fake_seeder.seeder [options] [\u003cmodel\u003e]\n\nOptions:\n\n--help, -h         Display this help.\n--verbose, -v      Enable verbose output.\n--quiet, -q        Enable quiet output.\n--mode, -m         The seeding mode.\n                   'manual' = No Field formatters are guessed.\n                   'auto' = All field formatters are guessed.\n                   'mixed' = Only missing field formatters are guessed.\n                   (choices: manual|auto|mixed)\n--locale, -l       The locale to use for Faker.\n--records, -r      The amount of records to seed.\n--validate         Whether or not to validate when saving the seeding\n                   data. (choices: first|1|)\n--seed, -s         Set the seed number for Faker to use.\n--no-truncate      Prevents that the model gets truncated before\n                   seeding.\n\nArguments:\n\nmodel  The name of a seeder shell task without 'SeederTask' suffix.\n       For example 'Article' for 'ArticleSeederTask'.\n       Alternatively the name of a model.\n       It will try to guess the field formatters then.\n       (optional)\n\nAll shell options can be set through:\n1. CLI parameter, e.g. \"--records\"\n2. The seeder specific configuration, e.g. \"FakeSeeder.Article.records\"\n3. The general seeder configuration, e.g \"FakeSeeder.records\"\n4. The seeder shell task class properties, e.g. \"$_records\"\nThe values are checked in that order. The first value found is taken.\nIf no value is set, it will fall back to an optional default value.\n\nWhen no seeders are set (e.g. in a custom seeder suite) and if called\nwithout arguments, it will prompt to execute one of the seeder shell\ntasks available.\n\n````\n\n- See [ExampleSeederShell.php](Docs/Examples/ExampleSeederShell.php) for an example how to create\na **custom seeder shell**.\n- See [ExampleSeederTask.php](Docs/Examples/ExampleSeederTask.php) for an example how to create\na **custom seeder task**.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md)\n\n## TODOs\n\n- Improve Documentation\n- Simplify integration of 3rd party data provider\n- Implement seeder shell task baking\n- Check possibility to use code for TestFixtures, like [gourmet/faker](https://github.com/gourmet/faker)\n\n## License\n\nThis plugin is licensed under the [MIT License](LICENSE).\n\n## Attribution\n\nThis project was inspired by the works of others, such as:\n\n- The book [\"Build APIs You Won't Hate\"](https://leanpub.com/build-apis-you-wont-hate) by [Phil Sturgeon](https://github.com/philsturgeon)\n- The [Faker plugin for CakePHP 3.x](https://github.com/gourmet/faker) by [Jad Bitar](https://github.com/jadb)\n- [Faker](https://github.com/fzaninotto/Faker) by [Francois Zaninotto](https://github.com/fzaninotto)\n- [CakePHP Faker Fixtures Plugin](https://github.com/burriko/cakephp-faker-fixtures/)\n- [CakePHP Seed Shell Plugin](https://github.com/jlis/Cake-Seed-Shell)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravage84%2Fcakephp-fake-seeder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravage84%2Fcakephp-fake-seeder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravage84%2Fcakephp-fake-seeder/lists"}