PHPackages                             spryker/code-migrator - 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. spryker/code-migrator

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

spryker/code-migrator
=====================

CodeUpdater bundle

038[3 PRs](https://github.com/spryker/code-migrator/pulls)PHP

Since Feb 21Pushed 1y ago65 watchersCompare

[ Source](https://github.com/spryker/code-migrator)[ Packagist](https://packagist.org/packages/spryker/code-migrator)[ RSS](/packages/spryker-code-migrator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Spryker Migrator
================

[](#spryker-migrator)

Installation
------------

[](#installation)

You need to clone spryker/code-migrator into `vendor/spryker/code-migrator`

```
git clone git@github.com:spryker/code-migrator.git

```

After that you need to install all it's dependencies by running

```
composer install

```

You can test it by running `vendor/bin/codecept run`

Documentation
-------------

[](#documentation)

To run the updater go to the root directory of you project and execute

```
php vendor/spryker/code-migrator/src/index.php spryker:migrate -h

```

The `-h` option will show you how to configure and use this command.

Important options are:

- `-d` running in dry mode
- `-p=[PROJECT_NAMESPACE]` change the project namespace
- `-n` non-interaction mode
- `-c` run migration on core bundles

To see what will be changed execute:

```
php vendor/spryker/code-migrator/src/index.php spryker:migrate -d -n

```

This runs the command in dry and non-interactive mode and will print out what it will do.

Run it on a project with a project namespace different to "Pyz":

```
php vendor/spryker/code-migrator/src/index.php spryker:migrate -d -n -p CatFace

```

This will then use "CatFace" as your project namespace.

Run it finally:

```
php vendor/spryker/code-migrator/src/index.php spryker:migrate

```

After doing the manually steps you should be able to run your tests, setup install and to buy something in the shop.

Please make sure that EVERYTHING goes through QA!

Known problems which cant be fixed or cant be found currently:

```
Propel\Runtime\Exception\RuntimeException - No connection defined for database "zed". Did you forget to define a connection or is it wrong written?

```

You need to add `new PropelServiceProvider(),` to `ApplicationDependencyProvider::getServiceProvider()` it is used in one place of this class and therefore not shown as missing.

---

```
Twig_Error_Syntax - Unknown "formatDateTime" filter.

```

You need to add `new DateTimeFormatterServiceProvider(),` to `ApplicationDependencyProvider::getServiceProvider()` it is used in one place of this class and therefore not shown as missing.

---

Any Twig related exception:

You need to add `new GuiTwigExtensionServiceProvider(),` to `ApplicationDependencyProvider::getServiceProvider()` it is used in one place of this class and therefore not shown as missing.

---

Translation on Zed side needs another plugin then this provided from Messenger bundle. If you don't have a MessengerDependencyProvider in your project add one add overwrite `addTranslationPlugin()` and use `Spryker\Zed\Glossary\Communication\Plugin\TranslationPlugin`

---

User bundle needs to get GroupPlugin from Acl bundle injected. You need to create a UserDependencyProvider and override the `addGroupPlugin()` method which then returns Acl's GroupPlugin instead of the one from User.

---

Cart bundle needs to get ItemCountPlugin from ProductBundle bundle injected. You need to create a CartDependencyProvider (Client) and override the `addItemCountPlugin()` method which then returns ProductBundles ItemCountPlugin instead of the one from Cart.

---

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10738957?v=4)[Spryker Bot](/maintainers/spryker-bot)[@spryker-bot](https://github.com/spryker-bot)

---

Top Contributors

[![stereomon](https://avatars.githubusercontent.com/u/1382877?v=4)](https://github.com/stereomon "stereomon (3 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (2 commits)")[![sakharova-yuliia](https://avatars.githubusercontent.com/u/62552852?v=4)](https://github.com/sakharova-yuliia "sakharova-yuliia (1 commits)")[![spryker-release-bot](https://avatars.githubusercontent.com/u/26904324?v=4)](https://github.com/spryker-release-bot "spryker-release-bot (1 commits)")

### Embed Badge

![Health badge](/badges/spryker-code-migrator/health.svg)

```
[![Health](https://phpackages.com/badges/spryker-code-migrator/health.svg)](https://phpackages.com/packages/spryker-code-migrator)
```

###  Alternatives

[winter/laravel-config-writer

Utility to create and update Laravel config and .env files

16300.9k9](/packages/winter-laravel-config-writer)

PHPackages © 2026

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