PHPackages                             phpcr/phpcr-migrations-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpcr/phpcr-migrations-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpcr/phpcr-migrations-bundle
=============================

PHPCR migrations bundle

1.6.0(2y ago)9310.0k↓45.4%18MITPHPPHP ^8.1

Since Mar 18Pushed 2y ago3 watchersCompare

[ Source](https://github.com/phpcr/phpcr-migrations-bundle)[ Packagist](https://packagist.org/packages/phpcr/phpcr-migrations-bundle)[ RSS](/packages/phpcr-phpcr-migrations-bundle/feed)WikiDiscussions 1.x Synced 2d ago

READMEChangelog (3)Dependencies (21)Versions (5)Used By (8)

PHPCR Migrations Bundle
=======================

[](#phpcr-migrations-bundle)

This library provides a Symfony integration for the [PHPCR migrations library](https://github.com/phpcr/phpcr-migrations).

It has initially been created by Daniel Leech as `dantleech/phpcr-migrations-bundle` and was then donated to the PHPCR organization.

Configuration
-------------

[](#configuration)

Configure the path to your migrations:

```
# config/packages/phpcr-migrations.yaml
phpcr_migrations:
    paths: [%kernel.project_dir%/phpcr-migrations]
```

And the bundle will automatically pick up any migrations in the `Resources/phpcr-migrations` folder in any bundles registered in the kernel.

Creating migrations
-------------------

[](#creating-migrations)

First create two new migration files:

```
