{"id":18781554,"url":"https://github.com/devture/pimple-provider-phinx-migrations","last_synced_at":"2025-10-10T07:20:37.311Z","repository":{"id":64910074,"uuid":"579339713","full_name":"devture/pimple-provider-phinx-migrations","owner":"devture","description":"A Pimple Service Provider which provides database migrations console commands, powered by Phinx","archived":false,"fork":false,"pushed_at":"2022-12-17T11:40:19.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-12T16:58:57.708Z","etag":null,"topics":[],"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/devture.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-17T11:15:40.000Z","updated_at":"2022-12-17T11:15:54.000Z","dependencies_parsed_at":"2022-12-17T17:20:51.559Z","dependency_job_id":null,"html_url":"https://github.com/devture/pimple-provider-phinx-migrations","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devture/pimple-provider-phinx-migrations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fpimple-provider-phinx-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fpimple-provider-phinx-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fpimple-provider-phinx-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fpimple-provider-phinx-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devture","download_url":"https://codeload.github.com/devture/pimple-provider-phinx-migrations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fpimple-provider-phinx-migrations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003172,"owners_count":26083533,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T20:32:33.972Z","updated_at":"2025-10-10T07:20:37.261Z","avatar_url":"https://github.com/devture.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database Migrations services wrapped in a Pimple Service Provider\n\nThis is a [Pimple](https://github.com/silexphp/Pimple) Service Provider which provides database migrations console commands, powered by [Phinx](https://phinx.org/).\n\n\n## Configuration\n\n```php\n$dbMigrationsConfig = [\n\t'environments' =\u003e [\n\t\t'default_database' =\u003e 'development',\n\t\t'development' =\u003e [\n\t\t\t'adapter' =\u003e 'mysql',\n\t\t\t'charset'=\u003e 'utf8',\n\t\t\t'collation' =\u003e 'utf8_general_ci',\n\t\t\t'uri' =\u003e 'username:password@localhost/db_name',\n\t\t],\n\t\t'paths' =\u003e [\n\t\t\t'migrations' =\u003e 'migrations',\n\t\t],\n\t\t'migrations_base_path' =\u003e '/path/to/migrations-directory-parent',\n\t],\n];\n```\n\n\n## Usage\n\n```php\n$container = new \\Pimple\\Container();\n\n$container['console'] = function () use ($container) {\n\t$console = new \\Symfony\\Component\\Console\\Application();\n\n\t// Register some other console commands here\n\n\t// Register the services provided by this service provider\n\t$container-\u003eregister(new \\Devture\\PimpleProvider\\PhinxMigrations\\ServiceProvider($dbMigrationsConfig));\n\n\t// Attach the console commands provided by this service provider with this console instance\n\t$container['devture_phinx_migrations.attach_commands_to_console']($console);\n\n\treturn $console;\n};\n\n$container['console']-\u003erun();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fpimple-provider-phinx-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevture%2Fpimple-provider-phinx-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fpimple-provider-phinx-migrations/lists"}