Download the PHP package t4web/migrations without Composer

On this page you can find all versions of the php package t4web/migrations. 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 migrations

Build Status codecov.io Scrutinizer Code Quality

Migrations

Simple Migrations for Zend Framework 2.

Supported Drivers

The following DB adapter drivers are supported by this module.

Installation

Using composer

or add to your composer.json

Then add T4web\Migrations to the modules array in application.config.php

Configuration

Add to your configuration:

General options:

The top-level key used to configure this module is migrations.

Migration Configurations: Migrations

Each key under migrations is a migrations configuration.

Sub-key: dir

The path to the directory where migration files are stored. Defaults to ./migrations in the project root dir.

Sub-key: namespace

The class namespace that migration classes will be generated with. Defaults to T4web\Migrations.

Sub-key: show_log (optional)

Flag to log output of the migration. Defaults to true.

Sub-key: adapter (optional)

The service alias that will be used to fetch a Zend\Db\Adapter\Adapter from the service manager.

Usage

Available commands

Migration classes are stored in /path/to/project/migrations/ dir by default.

Generic migration class has name Version_<YmdHis> and implement T4web\Migrations\Migration\MigrationInterface.

Migration class example

Accessing ServiceLocator In Migration Class


All versions of migrations with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
zendframework/zend-db Version ^2.5
zendframework/zend-modulemanager Version ^2.5
zendframework/zend-servicemanager Version ^2.5
zendframework/zend-console Version ^2.5
zendframework/zend-mvc Version ^2.5
zendframework/zend-text Version ^2.5
t4web/filesystem Version 1.0.0
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 t4web/migrations contains the following files

Loading the files please wait ....