Download the PHP package valorin/zf2-phinx-module without Composer

On this page you can find all versions of the php package valorin/zf2-phinx-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zf2-phinx-module

ZF2 Phinx Module

Created by Stephen Rees-Carter, version 0.1.1. Build Status

ZF2 module to integrate the Phinx database migration tool into a ZF2 application console. It provides a way to sync the application DB connections with Phinx, and run each of the Phinx commands easily.

Installation

The easiest way to install the module is using Composer.

  1. Install composer:

  2. Add Phinx as a dependency to your composer.json file:

  3. Update ./config/application.config.php and add enable the PhinxModule:

  4. Run the application console to see usage information:

Commands

index.php phinx setup [--overwrite] - Interactive setup script that asks the user for the database credentials and generates the ZF2 config file (./config/autoload/phinx.local.php) and the Phinx config file (./config/phinx.yml).

index.php phinx sync - Saves the database credentials found in the ZF2 config into the Phinx config file (./config/phinx.yml) so you don't need to keep them both up-to-date.

index.php phinx <phinx commands> - Calls the Phinx cli and passes any specified phinx commands through to Phinx. It also automatically configures the custom phinx.yml location so you don't need to worry about it. Running this without any commands will return the Phinx command reference.

Composer Integration

The Phinx Module comes with support for Composer Scripts so you can have your application database automatically set up and migrated as part of the composer install. Simply add the following block to your composer.json, and it will automatically setup and migrate after a successful composer install or composer update.

All commands are optional, so only use what you need.

Version History

v0.1.1 - 2013-03-28

v0.1.0 - 2013-03-03


All versions of zf2-phinx-module with dependencies

PHP Build Version
Package Version
Requires robmorgan/phinx Version *
symfony/yaml Version 2.*
zendframework/zendframework Version 2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package valorin/zf2-phinx-module contains the following files

Loading the files please wait ....