PHPackages                             jmsfwk/fluent-phinx - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. jmsfwk/fluent-phinx

ActiveLibrary[Database &amp; ORM](/categories/database)

jmsfwk/fluent-phinx
===================

Laravel style migrations with Phinx

0.4.0(5y ago)0889proprietaryPHP

Since Nov 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jmsfwk/fluent-phinx)[ Packagist](https://packagist.org/packages/jmsfwk/fluent-phinx)[ RSS](/packages/jmsfwk-fluent-phinx/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Fluent Phinx
============

[](#fluent-phinx)

Laravel-style migrations for [Phinx](https://book.cakephp.org/phinx/0/en/index.html).

- [Introduction](#introduction)
- [Migration Structure](#migration-structure)
- [Tables](#tables)
    - [Creating Tables](#creating-tables)
    - [Updating Tables](#updating-tables)
    - [Table Options](#table-options)
- [Indexes](#indexes)
    - [Creating Indexes](#creating-indexes)

Introduction
------------

[](#introduction)

Phinx provides a way to declare schemas in migrations, but it's somewhat difficult to use because of the array of options that vary by column type.

*Fluent Phinx* provides a fluent Laravel-style schema builder to simplify writing and reading migrations.

Migration Structure
-------------------

[](#migration-structure)

*Fluent Phinx* relies on regular Phinx [migration files](https://book.cakephp.org/phinx/0/en/migrations.html#creating-a-new-migration), with either a `change` method or `up`/`down` method pair.

The `Fluent` trait can be used to add fluent functionality to the migration file.

```
