2017 © Pedro Peláez
 

library robo-phinx

Phinx integration with Robo task runner

image

robertboloc/robo-phinx

Phinx integration with Robo task runner

  • Thursday, June 14, 2018
  • by robertboloc
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2,055 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 2 % Grown

The README.md

Robo Phinx Extension

Build Status Packagist License, (*1)

Integrates Phinx tool with the Robo task runner., (*2)

Table of contents

Installation

Add "robertboloc/robo-phinx": "^1.2" to your composer.json., (*3)

    {
        "require": {
            "robertboloc/robo-phinx": "^1.2"
        }
    }

Execute composer update, (*4)

Usage

Use the Phinx trait in your RoboFile.php, (*5)

<?php

class Robofile extends \Robo\Tasks
{
    use \Rb\Robo\Task\Phinx;

    //...
}

Build your tasks using the Phinx commands:, (*6)

Init

<?php

$this->taskPhinx()
     ->init($path = '.')
     ->run();

Create

<?php

$this->taskPhinx()
     ->create($migration)
     ->run();

Migrate

<?php

$this->taskPhinx()
     ->migrate($target = null)
     ->run();

Rollback

<?php

$this->taskPhinx()
     ->rollback($target = null)
     ->run();

Status

<?php

$this->taskPhinx()
     ->status()
     ->run();

Configuration

You can apply configuration parameters to all the commands using the configuration modifiers:, (*7)

Config

<?php

$this->taskPhinx()
     ->config($file = 'phinx.yml')
     ->status()
     ->run();

Parser

<?php

$this->taskPhinx()
     ->parser($format = 'yaml')
     ->status()
     ->run();

Environment

<?php

$this->taskPhinx()
     ->environment($environment = 'development')
     ->status()
     ->run();

Note that all the commands have their default arguments in parenthesis. If no argument is specified the command takes no argument., (*8)

The Versions

14/06 2018

dev-master

9999999-dev

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

14/06 2018

1.2.0

1.2.0.0

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

05/11 2016

v1.1.1

1.1.1.0

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

05/11 2016

dev-develop

dev-develop

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

05/11 2016

dev-feature-gitattributes

dev-feature-gitattributes

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

12/06 2016

dev-feature-phinx-5.x

dev-feature-phinx-5.x

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

23/01 2015

v1.1.0

1.1.0.0

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

23/01 2015

dev-feature-robo-0.5.0

dev-feature-robo-0.5.0

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

27/12 2014

v1.0.0

1.0.0.0

Phinx integration with Robo task runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires