PHPackages                             jgrasp/sylius-prestashop-migration-plugin - 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. jgrasp/sylius-prestashop-migration-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

jgrasp/sylius-prestashop-migration-plugin
=========================================

Migrate Prestashop data into Sylius

0.5.2(4y ago)11093[2 PRs](https://github.com/Jgrasp/sylius-prestashop-migration-plugin/pulls)MITPHPPHP ^8.0

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Jgrasp/sylius-prestashop-migration-plugin)[ Packagist](https://packagist.org/packages/jgrasp/sylius-prestashop-migration-plugin)[ RSS](/packages/jgrasp-sylius-prestashop-migration-plugin/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

Introduction
============

[](#introduction)

This plugin allows you to migrate your Prestashop data to Sylius. It is able to recreate the tree structure of categories, import products and their variations, shops, product images, etc...

The wish is that you can decorate every part of it to use according to your needs.

Please use this plugin only on a developing site, ideally before starting work on the site, as this plugin has the ability to completely remove the database for work.

I am not responsible for the loss of your data. I created this plugin with the aim of making life easier for developers, I will try to keep the documentation as clear as possible.

I hope this plugin helps you as much as it helped me. I will continue to make it grow and evolve with the new projects that I will meet (and your feedback perhaps? 😊).

---

Requirements
============

[](#requirements)

- Sylius 1.10 minimum
- PHP 8.0 minimum

---

Installation
============

[](#installation)

1. Add the plugin to your project

```
$ composer require jgrasp/sylius-prestashop-migration-plugin
```

2. Add plugin dependency to your `config/bundles.php` file:

```
    return [
        ...
        Jgrasp\PrestashopMigrationPlugin\PrestashopMigrationPlugin::class => ['all' => true],
    ]
```

3. Add .env variables

```
   # Enter the correct Prestashop database login details.
   PRESTASHOP_DATABASE_URL=mysql://root@127.0.0.1/sylius_%kernel.environment%

   # Custom the valid URL where product images are stored. If this variable is empty, the plugin will try to find images with the Prestashop database.
   PRESTASHOP_IMG_DIRECTORY_URL=https://www.example.com/img/p/
```

4. Create a new doctrine DBAL connection

```
doctrine:
  dbal:
    connection:
      prestashop:
        url: '%env(resolve:PRESTASHOP_DATABASE_URL)%'
```

5. Add package configuration

Create a new configuration file in `config/packages` like `prestashop.yaml` and put this configuration :

```
prestashop_migration:
  # The directory for product images
  public_directory: "%env(PRESTASHOP_IMG_DIRECTORY_URL)%"

  # Doctrine DBAL connection to retrieve data from Prestashop
  connection: prestashop

  # Read the documentation to see how custom this field.
  resources: ~
```

6. Custom Entities

Add the following code

```
use PrestashopTrait;
```

in entities :

- `App\Entity\Addressing\Address`
- `App\Entity\Addressing\Country`
- `App\Entity\Addressing\Zone`
- `App\Entity\Channel\Channel`
- `App\Entity\Currency\Currency`
- `App\Entity\Customer\Customer`
- `App\Entity\Locale\Locale`
- `App\Entity\Product\Product`
- `App\Entity\Product\ProductOption`
- `App\Entity\Product\ProductOptionValue`
- `App\Entity\Product\ProductVariant`
- `App\Entity\Shipping\ShippingMethod`
- `App\Entity\Taxation\TaxRate`
- `App\Entity\User\AdminUser`

This trait is essential &amp; add a link between Sylius &amp; Prestashop entities.

`App\Entity\Product\ProductVariant` should implements `Jgrasp\PrestashopMigrationPlugin\Entity\Product\ProductVariantInterface`. So add the following code :

```
use Jgrasp\PrestashopMigrationPlugin\Entity\Product\ProductVariantInterface;

class ProductVariant extends BaseProductVariant implements ProductVariantInterface{

}
```

7. Upgrade your database

```
$ php bin/console doctrine:migrations:diff
$ php bin/console doctrine:migrations:migrate
```

8. Configure the locale parameter

The parameter must be a locale that exists in the list of active languages of the Prestashop you want to migrate. Without this, the migration of the translations will not be able to be done correctly.

```
parameters:
    locale: en_EN
```

Congratulations ! Your project is ready for the migration. Let's start with [How to use](doc/how_to_use.md) !

---

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

11

Last Release

1562d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f618031c1a52dc14b79e298b97bd499b58644588b234c1ed0fb801737b0193ea?d=identicon)[jgrasp](/maintainers/jgrasp)

---

Top Contributors

[![Jgrasp](https://avatars.githubusercontent.com/u/10723031?v=4)](https://github.com/Jgrasp "Jgrasp (57 commits)")

### Embed Badge

![Health badge](/badges/jgrasp-sylius-prestashop-migration-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/jgrasp-sylius-prestashop-migration-plugin/health.svg)](https://phpackages.com/packages/jgrasp-sylius-prestashop-migration-plugin)
```

###  Alternatives

[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

701.8M20](/packages/sylius-refund-plugin)[stefandoorn/sitemap-plugin

Sitemap Plugin for Sylius

841.1M1](/packages/stefandoorn-sitemap-plugin)[odiseoteam/sylius-vendor-plugin

Vendor plugin for Sylius. Add Vendor (Brand) to your products

6068.4k1](/packages/odiseoteam-sylius-vendor-plugin)[webgriffe/sylius-table-rate-shipping-plugin

Provides table rate shipping calculator.

1493.8k](/packages/webgriffe-sylius-table-rate-shipping-plugin)[monsieurbiz/sylius-menu-plugin

This plugins allows you to manage menus.

1580.0k1](/packages/monsieurbiz-sylius-menu-plugin)

PHPackages © 2026

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