2017 © Pedro Peláez
 

library phinx-task

Phinx task for Soy

image

soy-php/phinx-task

Phinx task for Soy

  • Friday, November 20, 2015
  • by rskuipers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Phinx Task

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Introduction

This is a Phinx task for Soy. This package is actually a collection of Phinx tasks to support each available command in the Phinx command line., (*2)

Usage

This package contains the following tasks:, (*3)

  • CreateTask
  • MigrateTask

Include soy-php/phinx-task in your project with composer:, (*4)

$ composer require soy-php/phinx-task

To prevent having to configure each Phinx task separately we've introduced a PhinxConfig. You can prepare PhinxConfig and it will be used by all phinx tasks. You can also call the same setters on a Phinx task itself, it will simply be proxied through to the global Phinx config., (*5)

<?php

$recipe = new \Soy\Recipe();

$recipe->prepare(\Soy\Phinx\Config::class, function (\Soy\Phinx\Config $phinxConfig) {
    return $phinxConfig
        ->setBinary('./vendor/bin/phinx')
        ->setConfigurationFile('app/config/phinx.yml');
});

$recipe->component('default', function (\Soy\Phinx\MigrateTask $phinxMigrateTask) {
    $phinxMigrateTask
        ->setVerbose(true)
        ->run();
});

return $recipe;

The Versions

20/11 2015

dev-develop

dev-develop

Phinx task for Soy

  Sources   Download

MIT

The Requires

 

20/11 2015

0.2.0

0.2.0.0

Phinx task for Soy

  Sources   Download

MIT

The Requires

 

16/11 2015

0.1.0

0.1.0.0

Phinx task for Soy

  Sources   Download

MIT

The Requires