PHPackages                             elgentos/magento2-composer-quality-patches - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. elgentos/magento2-composer-quality-patches

AbandonedArchivedMagento2-module[Testing &amp; Quality](/categories/testing)

elgentos/magento2-composer-quality-patches
==========================================

Converts Magento's Quality Patches to a JSON format to be used with vaimo/composer-patches

0.1.4(4y ago)2116.2k—0%1[1 issues](https://github.com/elgentos/magento2-composer-quality-patches/issues)PHP

Since Dec 6Pushed 3y ago2 watchersCompare

[ Source](https://github.com/elgentos/magento2-composer-quality-patches)[ Packagist](https://packagist.org/packages/elgentos/magento2-composer-quality-patches)[ RSS](/packages/elgentos-magento2-composer-quality-patches/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

elgentos/magento2-composer-quality-patches
==========================================

[](#elgentosmagento2-composer-quality-patches)

This extension adds one command: `bin/magento elgentos:quality-patches:convert`

It generates a `composer.quality-patches.json` file to use with the `vaimo/composer-patches` package. It will also add that file to `composer.json` when it hasn't been set yet, and add a post-update-cmd hook to automatically update the patches file.

This depends on `magento/quality-patches` and `vaimo/composer-patches`.

Some patches will give a "Hmm... Ignoring the trailing garbage." warnings, causing the patch to fail. There are two ways to handle this;

1. Add this to your `composer.json` to let patches fail without stopping the patching:

```
{
    "extra": {
        "patcher": {
            "graceful": true
        }
    }
}
```

2. Add this to your post-install-cmd to fix the double new lines and run the patcher again:

```
{
    "scripts": {
        "post-install-cmd": [
            "# Remove double new lines from patches to make vaimo/composer-patches process them correctly",
            "find vendor/magento/quality-patches -type f -name '*.patch' -exec    sed --in-place -e :a -e '/^\\n*$/{$d;N;};/\\n$/ba' {} \\;",
            "# Now run patch:apply again to apply the patches and use --no-scripts to avoid an infinite loop",
            "composer2 patch:apply --no-scripts"
        ]
    }
}
```

We prefer option 2 because when using option 1, other patches that fail for other reasons will not stop our deployment.

Install &amp; Usage
-------------------

[](#install--usage)

```
composer require elgentos/magento2-composer-quality-patches
bin/magento s:up
bin/magento elgentos:quality-patches:convert
composer patch:apply
```

Alternative method of automatically applying patches
----------------------------------------------------

[](#alternative-method-of-automatically-applying-patches)

1. `composer require magento/quality-patches`
2. Add this to your `composer.json`;

```
{
    "scripts": {
        "post-install-cmd": [
            "./vendor/bin/magento-patches status | grep 'Not applied' | cut -d ' ' -f2 | xargs --no-run-if-empty ./vendor/bin/magento-patches apply"
        ]
    }
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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 ~130 days

Total

5

Last Release

1461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88a6d8dc588e8f2a0948335563a754687f71304f0bd3b7f7049d4bcdc00a563c?d=identicon)[peterjaap](/maintainers/peterjaap)

---

Top Contributors

[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (18 commits)")[![my-brain-qlicks](https://avatars.githubusercontent.com/u/82645798?v=4)](https://github.com/my-brain-qlicks "my-brain-qlicks (1 commits)")

### Embed Badge

![Health badge](/badges/elgentos-magento2-composer-quality-patches/health.svg)

```
[![Health](https://phpackages.com/badges/elgentos-magento2-composer-quality-patches/health.svg)](https://phpackages.com/packages/elgentos-magento2-composer-quality-patches)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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