PHPackages                             umc/module-crud - 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. [Framework](/categories/framework)
4. /
5. umc/module-crud

ActiveMagento2-module[Framework](/categories/framework)

umc/module-crud
===============

Magento 2 module for reducing the CRUD boilerplate

2.1.0(2y ago)269.3k↓33.3%11MITPHPPHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.0.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Feb 25Pushed 2y ago3 watchersCompare

[ Source](https://github.com/UltimateModuleCreator/umc-crud)[ Packagist](https://packagist.org/packages/umc/module-crud)[ RSS](/packages/umc-module-crud/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (12)Used By (1)

Umc\_Crud Magento 2 module
==========================

[](#umc_crud-magento-2-module)

Purpose:
--------

[](#purpose)

This module is intended for Magento 2 developers, in order to reduce the boilerplate code when creating a CRUD extension.

Compatibility
-------------

[](#compatibility)

- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.5
- 2.3.4
- probably works for versions before 2.3.4, but it's not guaranteed.

What it does:
-------------

[](#what-it-does)

It provides a set of classes and interfaces that can be configured, composed or prerenced in order to avoid writing the same code over and over again.

Example:

(Almost) every `Save` controller for an entity does the following:

- retrieves the data from POST.
- may or may not transform the data received via POST
- creates a new entity or retrieves a requested entity from the database
- assigns the data to the entity from the point above
- persists the entity
- redirects "somewhere" with a success or an error message.

And the only variables here are

- the entity being added / modified
- the way the data is processed before attaching it to the entity

This module provides a general admin `Save` controller that has as dependencies a set of other classes / interfaces that have only one of the responsibilities above

- an Entity manager responsible for retrieving the data from db or instantiating a new entity
- a data processor (interface) that processes the data
- an entity config class will contain the details about the entity being processed.
- side objects: a data persistor (which is basically the session) to save the data submitted in case there is an error and you need to redirect back to the form with the previously submitted data prefilled.

All of these can be configured via `di.xml` for each entity you want to manage.

This module also adds a few more code generators (similar to the core ones for factory or proxy for example) that will autogenerate repository classes and a few others.

Target audience
===============

[](#target-audience)

- this module is intended for experienced Magento 2 developers that are tired of writing the same thing over and over again.
- this is not intended for junior developers.
- In order to use this you have to have good knowledge of ...
    - how a magento CRUD module works
    - what is a [virtual type](https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/di-xml-file.html)
    - how DI works in Magento

Advantages in using this module
-------------------------------

[](#advantages-in-using-this-module)

- less code to write, which means less code to test and less code that can malfunction
- your copy/paste analyzer will stop complaining you have classes that look the same.
- decrease development time. (hopefully)
- you will have a standard way of writing all your CRUD modules (no matter if it's good or bad, at least it is consistent)
- This covers most of the cases you will encounter in your development process. If one of your cases is not covered by this module you can choose not to extend or compose the classes in this module and use your own.

Disadvantages of using this module
----------------------------------

[](#disadvantages-of-using-this-module)

- there is a lot more configuration you need to write (YEAH....xmls).
- makes debugging a little harder.
- adds a new abstractization layer ... or 7. Just kidding. it's 1.
- you add a new dependency to your project and all your CRUD module will depend on this module.

Installation:
=============

[](#installation)

- Via composer (recommended)
    - `composer require "umc/module-crud=*"`
- Manual install
    - download a copy from `https://github.com/UltimateModuleCreator/umc-crud` and all the files in `app/code/Umc/Crud`.

After installation

- run `php bin/magento setup:upgrade [--keep-generated]`
- check if this file exists `app/etc/crud/di.xml`. If it does not exist, run the command `bin/magento umc:crud:deploy`. If you get an error you can copy it from `vendor/umc/module-crud/etc/crud/di.xml` to `app/etc/crud/di.xml`.

Documentation
=============

[](#documentation)

For more details about how this extension should work, visit

Donations
=========

[](#donations)

If you really like this and get the hang of it and it saves you a lot of development time, consider [a small (or large - I won't mind) donation via PayPal](https://www.paypal.me/MariusStrajeru/10)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 57.1% 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 ~190 days

Recently: every ~348 days

Total

9

Last Release

746d ago

Major Versions

1.2.3 → 2.0.02023-07-07

PHP version history (5 changes)1.0.0PHP ~7.1.3||~7.2.0||~7.3.0

1.2.0PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0

1.2.3PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.0.0||~8.1.0

2.0.0PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.0.0||~8.1.0||~8.2.0

2.1.0PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.0.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3717ad6574e9491ca1155b5f4461ce27224478247d1d8d69e9d5fc7e9162f7a5?d=identicon)[umc](/maintainers/umc)

---

Top Contributors

[![radomirantal](https://avatars.githubusercontent.com/u/2676647?v=4)](https://github.com/radomirantal "radomirantal (8 commits)")[![UltimateModuleCreator](https://avatars.githubusercontent.com/u/11390799?v=4)](https://github.com/UltimateModuleCreator "UltimateModuleCreator (6 commits)")

### Embed Badge

![Health badge](/badges/umc-module-crud/health.svg)

```
[![Health](https://phpackages.com/badges/umc-module-crud/health.svg)](https://phpackages.com/packages/umc-module-crud)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3138.1k](/packages/fredden-magento2-module-javascript-error-reporting)[pagbank/payment-magento

PagBank - Payment for Magento and Adobe

2128.3k7](/packages/pagbank-payment-magento)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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