ndoubismarck / cakephp-migrations
Database Migration plugin for CakePHP based on Phinx
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.2.0
- cakephp/cache: ^4.0.5
- cakephp/orm: ^4.0.5
- robmorgan/phinx: ^0.12
Requires (Dev)
- cakephp/bake: ^2.1.0
- cakephp/cakephp: ^4.0.5
- cakephp/cakephp-codesniffer: ~4.1
- phpunit/phpunit: ~8.5.0
Suggests
- cakephp/bake: If you want to generate migrations.
- dereuromark/cakephp-ide-helper: If you want to have IDE suggest/autocomplete when creating migrations.
This package is auto-updated.
Last update: 2025-02-26 21:02:57 UTC
README
This is a Database Migrations system for CakePHP.
The plugin consists of a CakePHP shell wrapper for the Phinx migrations library.
This branch is for use with CakePHP 4.x. See version map for details.
Installation
You can install this plugin into your CakePHP application using Composer.
Run the following command
composer require ndoubismarck/cakephp-migrations
Configuration
You can load the plugin using the shell command:
bin/cake plugin load Migrations
Or you can manually add the loading statement in the src/Application.php file of your application:
public function bootstrap() { parent::bootstrap(); $this->addPlugin('Migrations'); }
Additionally, you will need to configure the default
database configuration in your config/app.php file.
Documentation
Full documentation of the plugin can be found on the CakePHP Cookbook.