{"id":17343435,"url":"https://github.com/firesphere/silverstripe-seeder","last_synced_at":"2025-03-27T09:41:38.971Z","repository":{"id":62504953,"uuid":"122166012","full_name":"Firesphere/silverstripe-seeder","owner":"Firesphere","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-27T08:42:53.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T14:30:00.378Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Firesphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-02-20T07:09:20.000Z","updated_at":"2020-10-03T23:06:40.000Z","dependencies_parsed_at":"2022-11-02T10:16:10.166Z","dependency_job_id":null,"html_url":"https://github.com/Firesphere/silverstripe-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/Firesphere%2Fsilverstripe-seeder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-seeder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-seeder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-seeder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firesphere","download_url":"https://codeload.github.com/Firesphere/silverstripe-seeder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245820398,"owners_count":20677832,"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":["hacktoberfest"],"created_at":"2024-10-15T16:09:23.621Z","updated_at":"2025-03-27T09:41:38.940Z","avatar_url":"https://github.com/Firesphere.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Firesphere/silverstripe-seeder/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Firesphere/silverstripe-seeder/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/Firesphere/silverstripe-seeder/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Firesphere/silverstripe-seeder/build-status/master)\n[![codecov](https://codecov.io/gh/Firesphere/silverstripe-seeder/branch/master/graph/badge.svg)](https://codecov.io/gh/Firesphere/silverstripe-seeder)\n\n# SilverStripe Seeder\n\n# *WARNING*\n\nThis will _not_ create a test database for you! Do not run this against a production database!\n\nSeed your database for Acceptance testing\n\n# Installation\n\n`composer require firesphere/seeder`\n\n# Usage\n\nCreate a seeder yml file somewhere in your project, with the same syntax as the standard PHPUnit tests. E.g.\n\n```yaml\n\nFiresphere\\Seeder\\Tests\\Mock\\Page:\n  page1:\n    Title: The title\n    Content: \"\u003cp\u003eWell, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing.\u003c/p\u003e\"\n\n```\n\nRelations are defined the same way as in PHPUnit.\n\nThen run the seeder\n\n`vendor/bin/sake dev/tasks/seeder type=seed flush=all`\n\nTo unseed, run\n\n`vendor/bin/sake dev/tasks/seeder type=seed flush=all`\n\nThis will destroy all data that is defined in your seeder yml.\n\nYou will need to run a database build before seeding, and after unseeding.\n\n# todo\n\nIntegrate with Codeception/Behat to automatically seed on run","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiresphere%2Fsilverstripe-seeder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiresphere%2Fsilverstripe-seeder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiresphere%2Fsilverstripe-seeder/lists"}