{"id":14987362,"url":"https://github.com/robinncode/db_craft","last_synced_at":"2025-04-12T00:02:37.998Z","repository":{"id":168784339,"uuid":"644526352","full_name":"robinNcode/db_craft","owner":"robinNcode","description":"DB Craft - CodeIgniter 4 Seeder, Migration Generator","archived":false,"fork":false,"pushed_at":"2024-11-12T19:11:44.000Z","size":55,"stargazers_count":16,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T12:03:49.387Z","etag":null,"topics":["cli","codeigniter4","migrations","package","php","seeders","specification"],"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/robinNcode.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-23T17:48:01.000Z","updated_at":"2025-01-31T01:48:40.000Z","dependencies_parsed_at":"2024-03-20T15:40:01.728Z","dependency_job_id":"520d20a5-8157-463a-9e1d-707575c0e473","html_url":"https://github.com/robinNcode/db_craft","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.07999999999999996,"last_synced_commit":"65689c065cd91d9852fd97a2e2f6d5fffad0bd76"},"previous_names":["robinncode/db_craft"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinNcode%2Fdb_craft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinNcode%2Fdb_craft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinNcode%2Fdb_craft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinNcode%2Fdb_craft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinNcode","download_url":"https://codeload.github.com/robinNcode/db_craft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239820238,"owners_count":19702524,"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":["cli","codeigniter4","migrations","package","php","seeders","specification"],"created_at":"2024-09-24T14:14:30.399Z","updated_at":"2025-02-20T10:30:51.820Z","avatar_url":"https://github.com/robinNcode.png","language":"PHP","readme":"# DB-Craft\n\nDB-Craft is a package for CodeIgniter 4 that provides convenient commands to generate migration and seeder files from a connected database.\n\n- Automatic Migration Generation: DB-Craft provides a simple command-line interface to generate migration files automatically based on the connected database. This feature allows developers to keep track of database schema changes and easily apply them to different environments.\n\n- Table-Specific Migrations: Developers can also generate migration files for specific tables, providing granular control over database changes. This flexibility allows for efficient database management and versioning.\n\n- Seeding Support: DB-Craft includes functionality to generate seeders, enabling developers to populate their database with initial data. This feature is especially useful for setting up sample data or populating reference tables.\n\n## Installation\n\nYou can install the DB-Craft package via Composer by running the following command:\n\n```\ncomposer require robinncode/db_craft\n```\n## Dependencies\n\nDB-Craft has the following dependencies:\n\n- PHP: ^7.0.* || ^8.0.*\n- CodeIgniter/Framework: ^4.0.*\n\n\n## Usage\n\nDB-Craft comes with the following commands:\n\n### Generate Migration Files\n\nTo generate all migration files from the connected database, run the following command:\n\n```\nphp spark get:migration\n```\n\nTo generate migration files for a specific table, run the following command:\n\n```\nphp spark get:migration table_name\n```\n\nReplace `table_name` with the name of the specific table for which you want to generate migration files.\n\n### Generate Seeder Files\n\nTo generate all seeder files from the connected database, run the following command:\n\n```\nphp spark get:seed\n```\n\nTo generate seeder files for a specific table with table data, run the following command:\n\n```\nphp spark get:seed table_name\n```\n\nReplace `table_name` with the name of the specific table for which you want to generate seeder files.\n\n## License\n\nDB-Craft is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinncode%2Fdb_craft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinncode%2Fdb_craft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinncode%2Fdb_craft/lists"}