{"id":33997498,"url":"https://github.com/robertmarsal/robo-phinx","last_synced_at":"2025-12-13T08:58:34.088Z","repository":{"id":25122721,"uuid":"28544436","full_name":"robertmarsal/robo-phinx","owner":"robertmarsal","description":"Phinx integration with Robo task runner","archived":false,"fork":false,"pushed_at":"2018-06-14T19:59:45.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T11:18:13.959Z","etag":null,"topics":["phinx","robo"],"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/robertmarsal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-27T19:26:38.000Z","updated_at":"2018-07-24T21:23:15.000Z","dependencies_parsed_at":"2022-08-23T19:30:20.331Z","dependency_job_id":null,"html_url":"https://github.com/robertmarsal/robo-phinx","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/robertmarsal/robo-phinx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertmarsal%2Frobo-phinx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertmarsal%2Frobo-phinx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertmarsal%2Frobo-phinx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertmarsal%2Frobo-phinx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertmarsal","download_url":"https://codeload.github.com/robertmarsal/robo-phinx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertmarsal%2Frobo-phinx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702869,"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-12-13T02:00:09.769Z","response_time":147,"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":["phinx","robo"],"created_at":"2025-12-13T08:58:31.923Z","updated_at":"2025-12-13T08:58:34.079Z","avatar_url":"https://github.com/robertmarsal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robo Phinx Extension\n[![Build Status](https://travis-ci.org/robertboloc/robo-phinx.svg?branch=master)](https://travis-ci.org/robertboloc/robo-phinx)\n[![Packagist](https://img.shields.io/packagist/v/robertboloc/robo-phinx.svg?style=flat)](https://packagist.org/packages/robertboloc/robo-phinx)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/robertboloc/robo-phinx/blob/master/LICENSE.md)\n\nIntegrates Phinx tool with the [Robo](http://robo.li/) task runner.\n\n\n## Table of contents\n- [Installation](#installation)\n- [Usage](#usage)\n- [Configuration](#configuration)\n\n## Installation\nAdd `\"robertboloc/robo-phinx\": \"^1.2\"` to your composer.json.\n```json\n    {\n        \"require\": {\n            \"robertboloc/robo-phinx\": \"^1.2\"\n        }\n    }\n```\n\nExecute `composer update`\n\n## Usage\n\nUse the `Phinx` trait in your `RoboFile.php`\n```php\n\u003c?php\n\nclass Robofile extends \\Robo\\Tasks\n{\n    use \\Rb\\Robo\\Task\\Phinx;\n    \n    //...\n}\n```\n\nBuild your tasks using the `Phinx` commands:\n\n### Init\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003einit($path = '.')\n     -\u003erun();\n```\n### Create\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003ecreate($migration)\n     -\u003erun();\n```\n### Migrate\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003emigrate($target = null)\n     -\u003erun();\n```\n### Rollback\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003erollback($target = null)\n     -\u003erun();\n```\n### Status\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003estatus()\n     -\u003erun();\n```\n\n## Configuration\n\nYou can apply configuration parameters to all the commands using the configuration modifiers:\n\n### Config\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003econfig($file = 'phinx.yml')\n     -\u003estatus()\n     -\u003erun();\n```\n\n### Parser \n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003eparser($format = 'yaml')\n     -\u003estatus()\n     -\u003erun();\n```\n\n### Environment\n```php\n\u003c?php\n\n$this-\u003etaskPhinx()\n     -\u003eenvironment($environment = 'development')\n     -\u003estatus()\n     -\u003erun();\n```\n\nNote that all the commands have their default arguments in parenthesis. If no argument is specified the command takes no argument.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertmarsal%2Frobo-phinx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertmarsal%2Frobo-phinx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertmarsal%2Frobo-phinx/lists"}