Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Composer Bundle Migration Laravel Package

champs-libres/composer-bundle-migration

Composer plugin that syncs Doctrine migration files from installed bundles/packages into your root project on post-install/update. Configure destination via extra.appMigrationsDir (default app/DoctrineMigrations) and source via extra.migration-source (default Resources/migrations).

View on GitHub
Deep Wiki
Context7

ComposerBundleMigration

Migrate Doctrine Migrations files from installed bundles to the root package.

Installation

In your root package :

composer require champs-libres/composer-bundle-migration ~1.0

Add the post-install-cmd and post-update-cmd in your root composer.json :

"scripts": {
        "post-install-cmd": [
            "ComposerBundleMigration\\Composer\\Migrations::synchronizeMigrations"
        ],
        "post-update-cmd": [
            "ComposerBundleMigration\\Composer\\Migrations::synchronizeMigrations"
        ]      
    }

Configure migration directory

In your root package, you may configure the directory where migrations files are copied.

In composer.json:

"extra": {
    "appMigrationsDir": "path/to/my/dir"
}

Default is app/DoctrineMigrations (the default for doctrine-migrations-bundle).

Configure migration source dir

In the installed packages, you may also configure the directory where migrations files are located.

"extra": {
    "migration-source": "path/to/my/source/folder"
}

Default is Resources/migrations.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui