PHPackages                             b3nl/sw-migrations - 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. b3nl/sw-migrations

ActiveLibrary[Database &amp; ORM](/categories/database)

b3nl/sw-migrations
==================

Uses the shopware interface to enable custom database migrations.

1.1.0(7y ago)536.7kMITPHPPHP &gt;= 7.0.0

Since Apr 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/b3nl/sw-migrations)[ Packagist](https://packagist.org/packages/b3nl/sw-migrations)[ RSS](/packages/b3nl-sw-migrations/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

sw-migrations
=============

[](#sw-migrations)

This package was inspired by the original database deployment of shopware. *$SHOPWARE\_ROOT./build/ApplyDeltas.php* iterates through \_$SHOPWARE\_ROOT/*sql/migrations* and executes every migration file in this directory. Every migration file contains a class of type Shopware\\Components\\Migrations\\AbstractMigration.

ApplyDeltas.php is a shell script which can be called like:

```
php ./ApplyDeltas.php --username="root" --password="example" --host="localhost" --dbname="example-db" [ --mode=(install|update) ]
```

Shopware saves (in table s\_schema\_version) which migration files were executes and executes only new ones in following calls.

The general process stays the same with this package, but we add extended functionality with a custom

```
vendor/b3nl/sw-migrations/build/ApplyDeltas.php
```

This shell scripts provides additional parameters for iterating through custom migrations. It adds implements additional parameters to do so:

- shoppath: Your shopware root directory, because we could install this package in any directory we want
- migrationpath: The path to your custom migration folder
- tablesuffix: This suffix is used to create a custom version table for your specified migration path. **If you do not provide this value, your custom migration history is merged to the standard history. We suggest, that you provide this value in any case!**

This script could even be used to call the shopware standard migrations like so:

```
php vendor/b3nl/sw-migrations/build/ApplyDeltas.php --username="root" --password="example" --host="localhost" --dbname="example-db" [ --shoppath=$SHOPWARE_ROOT --migrationpath=$SHOPWARE_ROOT/_sql/migrations --mode=(install|update) ]
```

**German blog post about it: **

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

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 ~742 days

Total

3

Last Release

2596d ago

PHP version history (2 changes)1.0.0PHP &gt;= 5.4.0

1.0.1PHP &gt;= 7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5934068?v=4)[WBL Konzept](/maintainers/WBLKonzept)[@WBLKonzept](https://github.com/WBLKonzept)

---

Top Contributors

[![b3nl](https://avatars.githubusercontent.com/u/1861864?v=4)](https://github.com/b3nl "b3nl (3 commits)")[![arosenhagen](https://avatars.githubusercontent.com/u/50462?v=4)](https://github.com/arosenhagen "arosenhagen (1 commits)")[![teiling88](https://avatars.githubusercontent.com/u/4624237?v=4)](https://github.com/teiling88 "teiling88 (1 commits)")

### Embed Badge

![Health badge](/badges/b3nl-sw-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/b3nl-sw-migrations/health.svg)](https://phpackages.com/packages/b3nl-sw-migrations)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[yemenopensource/filament-excel

This package useful for importing excel files into models.

194.2k](/packages/yemenopensource-filament-excel)

PHPackages © 2026

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