fabiang / doctrine-migrations-liquibase
Generate Liquibase ChangeLog from Doctrine Entities
Installs: 628
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/fabiang/doctrine-migrations-liquibase
Requires
- php: ~8.3.0 || ~8.4.0 || ~8.5.0
- doctrine/dbal: ^3.10 || ^4.3
- doctrine/orm: ^2.20 || ^3.0
Requires (Dev)
- behat/behat: ^3.27
- doctrine/annotations: ^1.13 || ^2.0
- doctrine/cache: ^2.1
- laminas/laminas-coding-standard: ^2.5
- phpspec/prophecy: ^1.14
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^12.4
- squizlabs/php_codesniffer: ^3.13
- symfony/var-exporter: ^6
- thomasweinert/phpunit-xpath-assertions: ^4.1
- vimeo/psalm: ^6
- webmozart/assert: ^1.12
Replaces
This package is auto-updated.
Last update: 2025-12-09 15:05:24 UTC
README
Generate Liquibase ChangeLog from Doctrine Entities.
API Usage
/** @var Doctrine\ORM\EntityManager $em */ $em = ...; // Retrieve Doctrine EntityManager as usual in your environment. // Create a Liquibase SchemaTool with EntityManager $schemaTool = new LiquibaseSchemaTool($this->em); // Create a changelog that can be used on an empty database to build from scratch. /** @var \DOMDocument $changeLog */ $changeLog = $schemaTool->changeLog()->getResult(); echo $changeLog->saveXML(); // Or create a diff changelog that can be used on current database to upgrade it. /** @var \DOMDocument $diffChangeLog */ $diffChangeLog = $schemaTool->diffChangeLog()->getResult(); echo $diffChangeLog->saveXML();