2017 © Pedro Peláez
 

library phinx-package

Phinx integration for Objective PHP

image

objective-php/phinx-package

Phinx integration for Objective PHP

  • Friday, November 17, 2017
  • by gauthier
  • Repository
  • 3 Watchers
  • 0 Stars
  • 314 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 63 % Grown

The README.md

Objective PHP / Phinx Package

Project introduction

This package allow to easily make use of the Phinx migration tool with Objective PHP, (*1)

Installation

Manual

You can clone our Github repository by running:, (*2)

git clone http://github.com/objective-php/phinx-package

If you're to proceed this way, you probably don't need more explanation about how to use the library :), (*3)

Composer

The easiest way to install the library and get ready to play with it is by using Composer. Run the following command in an empty folder you just created:, (*4)

composer require objective-php/phinx-package 

How to test the work in progress?

Run unit tests

First of all, please always run the unit tests suite. Our tests are written using PHPUnit, and can be run as follow:, (*5)

vendor/bin/phpunit -c tests/phpunit.xml tests

Configure the package

This package provide a configuration class that allows you to define the file where the package can find the Phinx configuration., (*6)

You can use it as follow:, (*7)

<?php

use ObjectivePHP\Package\Phinx\Config\PhinxConfig;

return [
    (new PhinxConfig())
        ->setFilePath('phinx.php')
];

After that you just need to plug the PhinxPackage class into any Objective PHP application:, (*8)

<?php
use ObjectivePHP\Application\AbstractApplication
use ObjectivePHP\Package\Phinx\PhinxPackage;

class Application extends AbstractApplication
{
    public function init()
    {
        // define your application workflow

        $this->getStep('bootstrap')
            ->plug(PhinxPackage::class);
        }
}

The Versions

17/11 2017

dev-master

9999999-dev https://github.com/objective-php/phinx-package

Phinx integration for Objective PHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

phinx objective php

17/11 2017

v1.0.1

1.0.1.0 https://github.com/objective-php/phinx-package

Phinx integration for Objective PHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

phinx objective php

03/11 2017

v1.0.0

1.0.0.0 https://github.com/objective-php/phinx-package

Phinx integration for Objective PHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

phinx objective php