Download the PHP package fabiopaiva/pdo-simple-migration without Composer

On this page you can find all versions of the php package fabiopaiva/pdo-simple-migration. 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 pdo-simple-migration

PDO Simple Migration

Simple migration is a minimalist tool to manage your database versioning.

Installation

composer require fabiopaiva/pdo-simple-migration

Installation

Configuration

This library tries to find a file called config.php in working directory with PDO setup, if file doesn't exist, you can send PDO parameters in command line.

config.php (optional)

table is the name of database table to control your versioning, migrations is default.

dir is the path where you want to store you migrations file.

Usage

Status

List current status of your migrations

vendor/bin/migration status

Status

Generate

Generate a empty migration

vendor/bin/migration generate

Generate

Generated code example

Migrate

Migrate to latest version

vendor/bin/migration migrate

Migrate

Execute

Execute specific migration version (up or down)

vendor/bin/migration execute version --up --down

Execute

Options

--dump

If --dump parameter is present, migration will only dump query in screen

--dsn and --username

If you don't want to create config.php file, you can send --dsn setup parameter. If you send --dsn parameter, you need to send --username parameter too. The prompt will ask your database password.

--dir

Directory where to save migrations classes, default migrations

--table

Table where to store migrations versioning history, default migrations

Issues

Please report issues to Github Issue Tracker


All versions of pdo-simple-migration with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-pdo Version *
symfony/console Version 3.*
zendframework/zend-code 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 fabiopaiva/pdo-simple-migration contains the following files

Loading the files please wait ....