{"id":19218738,"url":"https://github.com/fadilxcoder/phinx","last_synced_at":"2025-04-20T20:32:06.392Z","repository":{"id":86245621,"uuid":"427888213","full_name":"fadilxcoder/phinx","owner":"fadilxcoder","description":"Phinx database migrations","archived":true,"fork":false,"pushed_at":"2023-12-04T18:55:02.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T09:14:45.651Z","etag":null,"topics":["database","php","poc"],"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/fadilxcoder.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":"2021-11-14T09:38:02.000Z","updated_at":"2024-11-05T17:12:07.000Z","dependencies_parsed_at":"2024-11-09T14:31:33.229Z","dependency_job_id":null,"html_url":"https://github.com/fadilxcoder/phinx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fphinx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fphinx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fphinx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fphinx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadilxcoder","download_url":"https://codeload.github.com/fadilxcoder/phinx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249958567,"owners_count":21351679,"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","php","poc"],"created_at":"2024-11-09T14:27:56.622Z","updated_at":"2025-04-20T20:32:06.132Z","avatar_url":"https://github.com/fadilxcoder.png","language":"PHP","readme":"# PHINX \n\n- https://phinx.org/ (phinx)\n- https://book.cakephp.org/phinx/0/en/index.html (Phinx Documentation)\n- https://book.cakephp.org/phinx/0/en/migrations.html (Writing Migrations)\n- https://book.cakephp.org/phinx/0/en/seeding.html (Database Seeding)\n- https://book.cakephp.org/phinx/0/en/commands.html (Commands)\n\n## Notes\n\n- Install using cmd : `composer require robmorgan/phinx`\n\n- Create directory in project files : `db/migrations` \u0026 `db/seeds`\n\n- Initialization : `vendor/bin/phinx init`\n\n- Database configs located in `phinx.php`\n\n- Creating a migration : `vendor/bin/phinx create UserMigration` - will create file *YYYYMMDDHHMMSS_user_migration.php* in `db/migrations`\n\n- Add codes in `change()` method of the newly created file\n\n- Executing a migration : `vendor/bin/phinx migrate -e development` , in **development** environment\n\n- Creating a table seeder : `vendor/bin/phinx seed:create UserSeeder` - will create file in `db/seeds`\n\n- Add codes in `run()` method in **UserSeeder** class\n\n- Execute the seeder : `vendor/bin/phinx seed:run`\n\n- Print the queries to standard output without executing them `vendor/bin/phinx rollback --dry-run`\n\n- `vendor/bin/phinx status` -  list of all migrations\n\n- Adding a column to table through migration - `vendor/bin/phinx migrate -t 20211114101311XXXXXXXX`\n\n- Executing specific seeder : `vendor/bin/phinx seed:run -s UserCompanySeeder`\n\n## Usage\n\n- `vendor/bin/phinx seed:run`\n\n- `vendor/bin/phinx seed:run -s UserCompanySeeder`\n\n- `vendor/bin/phinx migrate -t 20211114083508` \u0026 `vendor/bin/phinx seed:run -s UserSeeder`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadilxcoder%2Fphinx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadilxcoder%2Fphinx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadilxcoder%2Fphinx/lists"}