Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabiang/doctrine-migrations-liquibase-laminas

Laminas module for creating changesets for Liquibase with Doctrine
https://github.com/fabiang/doctrine-migrations-liquibase-laminas

doctrine doctrine-orm laminas laminas-module liquibase

Last synced: 2 months ago
JSON representation

Laminas module for creating changesets for Liquibase with Doctrine

Awesome Lists containing this project

README

        

# fabiang/doctrine-migrations-liquibase-laminas

Laminas module for creating changesets for Liquibase with Doctrine.

[![Unit Tests](https://github.com/fabiang/doctrine-migrations-liquibase-laminas/actions/workflows/unit.yml/badge.svg)](https://github.com/fabiang/doctrine-migrations-liquibase-laminas/actions/workflows/unit.yml)
[![Latest Stable Version](http://poser.pugx.org/fabiang/doctrine-migrations-liquibase-laminas/v)](https://packagist.org/packages/fabiang/doctrine-migrations-liquibase-laminas) [![Total Downloads](http://poser.pugx.org/fabiang/doctrine-migrations-liquibase-laminas/downloads)](https://packagist.org/packages/fabiang/doctrine-migrations-liquibase-laminas) [![Latest Unstable Version](http://poser.pugx.org/fabiang/doctrine-migrations-liquibase-laminas/v/unstable)](https://packagist.org/packages/fabiang/doctrine-migrations-liquibase-laminas) [![License](http://poser.pugx.org/fabiang/doctrine-migrations-liquibase-laminas/license)](https://packagist.org/packages/fabiang/doctrine-migrations-liquibase-laminas) [![PHP Version Require](http://poser.pugx.org/fabiang/doctrine-migrations-liquibase-laminas/require/php)](https://packagist.org/packages/fabiang/doctrine-migrations-liquibase-laminas)

## Installation

New to Composer? Read the [introduction](https://getcomposer.org/doc/00-intro.md#introduction). Run the following Composer command:

```console
$ composer require --dev fabiang/doctrine-migrations-liquibase-laminas
```

## Configuration

Load the module by adding it to `config/development.config.php`:

```php
return [
'modules' => [
/** order shouldn't matter here, but it 'DoctrineModule' should be loaded before **/
'Fabiang\DoctrineMigrationsLiquibase',
],
];
```

If you don't have a recommended `development.config.php` you can also add it to `application.config.php`.
But you should not activate the module on production systems, as you don't need it there.

## Usage

You should see two new command for `doctrine-module` when you execute the following command in your project:

./vendor/bin/doctrine-module list

* orm:liquibase:createchangelog
* orm:liquibase:creatediff

First creates the whole changelog XML file, second command creates just the diff.

## Licence

BSD-2-Clause. See the [LICENSE.md](LICENSE.md).