PHPackages                             qoliber/m2-datapatchcreator - 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. qoliber/m2-datapatchcreator

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

qoliber/m2-datapatchcreator
===========================

2.0.0(1y ago)552.7k↓35.3%15[3 issues](https://github.com/qoliber/m2-datapatchcreator/issues)4MITPHPPHP &gt;=8.1

Since Oct 18Pushed 9mo ago3 watchersCompare

[ Source](https://github.com/qoliber/m2-datapatchcreator)[ Packagist](https://packagist.org/packages/qoliber/m2-datapatchcreator)[ RSS](/packages/qoliber-m2-datapatchcreator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (11)Used By (4)

[![Open Source Love](https://camo.githubusercontent.com/ddf91434d4485475c0dc245c39579e596aa5fa81ffafc81d0b2bdd54f073ef92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e2d736f757263652d6c69676874677265793f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://camo.githubusercontent.com/ddf91434d4485475c0dc245c39579e596aa5fa81ffafc81d0b2bdd54f073ef92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e2d736f757263652d6c69676874677265793f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)[![](https://camo.githubusercontent.com/4997587cb7b44d6885ed6232c4fc7b45a4a262c5f72f30457ae2144e42b19d85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e332e782d6f72616e67653f7374796c653d666f722d7468652d6261646765266c6f676f3d6d6167656e746f)](https://camo.githubusercontent.com/4997587cb7b44d6885ed6232c4fc7b45a4a262c5f72f30457ae2144e42b19d85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e332e782d6f72616e67653f7374796c653d666f722d7468652d6261646765266c6f676f3d6d6167656e746f)[![](https://camo.githubusercontent.com/cf682d6e974eb5d2d308bc0f9066b509b639a0f1b32f8505e3756b58448b3062/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e782d6f72616e67653f7374796c653d666f722d7468652d6261646765266c6f676f3d6d6167656e746f)](https://camo.githubusercontent.com/cf682d6e974eb5d2d308bc0f9066b509b639a0f1b32f8505e3756b58448b3062/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e782d6f72616e67653f7374796c653d666f722d7468652d6261646765266c6f676f3d6d6167656e746f)[![](https://camo.githubusercontent.com/7800a561d31d48393bcb31f44b884e63affc8393fff9fd3c1820807eec29d5e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642d7965732d6772656e3f7374796c653d666f722d7468652d6261646765266c6f676f3d6d6167656e746f)](https://camo.githubusercontent.com/7800a561d31d48393bcb31f44b884e63affc8393fff9fd3c1820807eec29d5e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642d7965732d6772656e3f7374796c653d666f722d7468652d6261646765266c6f676f3d6d6167656e746f)

Magento 2 DataPatchCreator
==========================

[](#magento-2-datapatchcreator)

When working with large teams, many times someone forgets to create a data patch for a cms page, block, configuration or a product attribute.
This module allows you to create `PHP Data Patch Files` in Magento 2 Admin panel and export them to `PHP` files which you can add to your code repositories.

### Important:

[](#important)

#### This main version of the module **does not work with `PageBuilder` to assure `2.3.x` version compatibility**.

[](#this-main-version-of-the-module-does-not-work-with-pagebuilder-to-assure-23x-version-compatibility)

If you want to make it work with `PageBuilder` from **Magento 2.4.3** it is required to install additional composer package:

```
qoliber/m2-datapatchcreator-pagebuilder

```

Details:

### Installation

[](#installation)

Installation is via `composer`

```
composer require qoliber/m2-datapatchcreator

```

After installing the packages just run:

```
php bin/magento setup:upgrade

```

### Requirements:

[](#requirements)

- `PHP 8.1` and higher
- `Magento 2.3.x` and higher

### Tested on:

[](#tested-on)

- `Magento 2.3.x` OpenSource
- `Magento 2.4.x` OpenSource

#### Available Data Types for data patches:

[](#available-data-types-for-data-patches)

- Product Attributes (with image swatches sync)
- CMS Pages
- CMS Blocks
- Store Configuration
- *more to come in future releases*

### How to create data patches?

[](#how-to-create-data-patches)

You do everything in Magento 2 admin panel. :)

There are 2 ways to create Magento 2 Data Patch files:

- direct download (**DEFAULT OPTION**):
    - for a single entity, a `PHP` file is generated
    - for sets of data patch files (Mass Exports), a `ZIP` file containing patch files is generated
- local files:
    - files are always created in specified location (both for single entities and mass exports)

### Sync images between store copies:

[](#sync-images-between-store-copies)

Module allows images synchronization between Magento 2 store copies.
Class used to `dump / fetch` images needs to implement `ImageSyncInterface`

#### Default Image sync: `LocalFile`

[](#default-image-sync-localfile)

- Files are copied to target location when patch file is created
- Files are copied from configured location to Magento 2 `media` folded

### Adding new Image Sync Models:

[](#adding-new-image-sync-models)

Image Sync Models are passed into `array` of `ImageSync` class via `DI.XML`

```

                Qoliber\DataPatchCreator\Model\ImagesSync\LocalFile

```

If you want to add a new `ImageSync` model, just add a new element to `syncModels` array via `di.xml`
This key needs to match the store configuration set for `sync_model` configuration value.

Create a plugin for `SyncMethods` and make sure the `value` field matches array key passed in `di.xml`.

For example:

```

                YourVendor\YourModule\ImagesSync\AmazonS3

```

```
        return [
            ['value' => "AmazonS3", 'label' => __('Copy images to designated folder')],
        ];
```

Setting configuration in the admin panel will make force usage of your module for images sync.

### Suggested Packages:

[](#suggested-packages)

- PageBuilder Compatibility:

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance49

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity65

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

Recently: every ~280 days

Total

10

Last Release

515d ago

Major Versions

1.0.8 → 2.0.02024-12-19

PHP version history (4 changes)1.0.0PHP ~7.2.0||~7.3.0||~7.4.0

1.0.1PHP ~7.3.0||~7.4.0

1.0.6PHP &gt;=7.3

2.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![enanobots](https://avatars.githubusercontent.com/u/85762406?v=4)](https://github.com/enanobots "enanobots (3 commits)")[![jakwinkler](https://avatars.githubusercontent.com/u/4256191?v=4)](https://github.com/jakwinkler "jakwinkler (3 commits)")[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (1 commits)")[![piotr-budner](https://avatars.githubusercontent.com/u/104615280?v=4)](https://github.com/piotr-budner "piotr-budner (1 commits)")[![septoctobre](https://avatars.githubusercontent.com/u/9363712?v=4)](https://github.com/septoctobre "septoctobre (1 commits)")[![lukaszqs](https://avatars.githubusercontent.com/u/108715439?v=4)](https://github.com/lukaszqs "lukaszqs (1 commits)")[![budnerp](https://avatars.githubusercontent.com/u/7102626?v=4)](https://github.com/budnerp "budnerp (1 commits)")

### Embed Badge

![Health badge](/badges/qoliber-m2-datapatchcreator/health.svg)

```
[![Health](https://phpackages.com/badges/qoliber-m2-datapatchcreator/health.svg)](https://phpackages.com/packages/qoliber-m2-datapatchcreator)
```

PHPackages © 2026

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