PHPackages                             fortrabbit/craft-auto-migrate - 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. fortrabbit/craft-auto-migrate

ActiveComposer-plugin[Database &amp; ORM](/categories/database)

fortrabbit/craft-auto-migrate
=============================

Runs migrations automatically

2.5.0(3y ago)417.9k21MITPHPPHP ^8.0

Since Nov 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/fortrabbit/craft-auto-migrate)[ Packagist](https://packagist.org/packages/fortrabbit/craft-auto-migrate)[ RSS](/packages/fortrabbit-craft-auto-migrate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (15)Used By (1)

Craft Auto Migrate
------------------

[](#craft-auto-migrate)

A Composer plugin that runs `craft migrate/all` and `craft project-config/apply` after `composer install`, **if Craft is installed**.

### Install

[](#install)

Require the package as a dependency of a plugin or in the composer.json of your project.

```
composer require fortrabbit/craft-auto-migrate

```

### Disable

[](#disable)

By setting the ENV var `DISABLE_CRAFT_AUTOMIGRATE=1` you disable the plugin.

### Project Config

[](#project-config)

By setting the ENV var `PROJECT_CONFIG_FORCE_APPLY=1` the `project-config/apply` command is executed with the `--force` flag.

The file `config/project/project.yaml` will be removed after applying, unless you set the ENV var `KEEP_PROJECT_CONFIG=1` or composer install is running locally (interactive mode). This behaviour was added in `2.5.0` to prevent re-applying the Project Config in the Craft CP.

### Troubleshooting

[](#troubleshooting)

In case you get an `Your project config YAML files contain pending changes` error after a deploy or during first-time setup, try the following to resolve the issue:

- If you are on Craft 3, set `KEEP_PROJECT_CONFIG=1` otherwise leave it as the default `0`
- Delete the local and remote copies of the following files: ```
    storage/config-deltas/*.yaml*
    storage/config-backups/*.yaml*

    ```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~144 days

Recently: every ~198 days

Total

11

Last Release

1333d ago

Major Versions

1.2.0 → 2.0.02019-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b4fb22c4db9bc5b050c6b0f190885aa0016b980ba0d20ebbaff05a1198c0450?d=identicon)[fortrabbit](/maintainers/fortrabbit)

---

Top Contributors

[![frank-laemmer](https://avatars.githubusercontent.com/u/962736?v=4)](https://github.com/frank-laemmer "frank-laemmer (1 commits)")[![pheeque1](https://avatars.githubusercontent.com/u/97947131?v=4)](https://github.com/pheeque1 "pheeque1 (1 commits)")[![tomdavies](https://avatars.githubusercontent.com/u/136308?v=4)](https://github.com/tomdavies "tomdavies (1 commits)")

---

Tags

composercomposer-plugincraftcraftcmscomposerdevelopmentcraftcms

### Embed Badge

![Health badge](/badges/fortrabbit-craft-auto-migrate/health.svg)

```
[![Health](https://phpackages.com/badges/fortrabbit-craft-auto-migrate/health.svg)](https://phpackages.com/packages/fortrabbit-craft-auto-migrate)
```

###  Alternatives

[franzl/studio

Develop your Composer libraries with style

1.1k639.7k16](/packages/franzl-studio)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M124](/packages/automattic-jetpack-autoloader)[craftcms/plugin-installer

Craft CMS Plugin Installer

283.5M11](/packages/craftcms-plugin-installer)[event4u/data-helpers

Framework-agnostic PHP library for data mapping, DTOs and utilities. Includes DataMapper, SimpleDto/LiteDto, DataAccessor/Mutator/Filter and helper classes (MathHelper, EnvHelper, etc.). Works with Laravel, Symfony/Doctrine or standalone PHP.

1431.1k](/packages/event4u-data-helpers)[webonaute/doctrine-fixtures-generator-bundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.

67184.5k](/packages/webonaute-doctrine-fixtures-generator-bundle)[dgrigg/craft-migration-assistant

Create content migrations at the click of a mouse. Keep environments in sync with ease.

2783.1k](/packages/dgrigg-craft-migration-assistant)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
