PHPackages                             prooxxy/magento2-composer-constraints - 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. prooxxy/magento2-composer-constraints

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

prooxxy/magento2-composer-constraints
=====================================

A Magento 2 plugin that adds relevancy to the composer.json files in app/code

2.0.0(5y ago)451.6k↓64.4%[1 issues](https://github.com/Pr00xxy/magento2-composer-constraints/issues)MITPHPPHP &gt;=7.3

Since Apr 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Pr00xxy/magento2-composer-constraints)[ Packagist](https://packagist.org/packages/prooxxy/magento2-composer-constraints)[ RSS](/packages/prooxxy-magento2-composer-constraints/feed)WikiDiscussions master Synced 2d ago

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

app/code constraint checker
---------------------------

[](#appcode-constraint-checker)

This is a composer plugin for Magento 2 that validates the constraint from propriatary app/code modules' composer.json file against the installed packages.

As of time of creating this plugin, Magento recommends adding a composer.json file when creating a component:

> We recommend you include composer.json in your component’s root directory even if you do not intend to distribute it to other merchants using Magento.

This however, does not matter if your modules lives in app/code. You may declare all the constraints you want, but you'll probably forget about these as the project grows.

The goal of this plugin is to make the app/code/Vendor/Module/composer.json meaningful for developers.

Features
--------

[](#features)

After running `composer install`, a list of modules with dependency violations will show up

[![Platform requirement violations](./docs/violation.png)](./docs/violation.png)

The plugin will scan and verify the app/code packages and their dependencies and warn if a package version does not satisfy.

Since this plugin treats app/code modules as composer packages in memory, It can do cross checks between those modules as well. This means the plugin will not only check platform and "vendor" packages. But can also scan other app/code modules as if they were real packagesg.

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

[](#installation)

`composer require prooxxy/magento2-composer-constraints`

FAQ
---

[](#faq)

### My module is not showing up in the list

[](#my-module-is-not-showing-up-in-the-list)

The plugin should only should modules that have dependency violations.

It could also be that your module does not have the "version" tag in it's composer.json file. This is a requirement by the composer parser.

### Will this plugin prevent installations or in any other way hinder if any violations are detected?

[](#will-this-plugin-prevent-installations-or-in-any-other-way-hinder-if-any-violations-are-detected)

No

### How can I know if the plugin detected my module?

[](#how-can-i-know-if-the-plugin-detected-my-module)

Run composer with the -v flag and even modules without violations should render

### I found a bug!

[](#i-found-a-bug)

Great! submit a bug report!

Roadmap
-------

[](#roadmap)

1. Verify compatibility with 2.4
2. plugin should detect and respect "--ignore-platform-reqs"
3. plugin should check require-dev links

Compatibility Matrix
--------------------

[](#compatibility-matrix)

Magento 2.2Magento 2.3Magento 2.4`1.x`×✓×`2.x`××✓License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community7

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

Total

2

Last Release

1916d ago

Major Versions

1.0.0 → 2.0.02021-04-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/892479757ef2597339c2db7c80f832aebe18c2b464a69845a087588988290449?d=identicon)[pr00xxy](/maintainers/pr00xxy)

---

Top Contributors

[![Pr00xxy](https://avatars.githubusercontent.com/u/9111275?v=4)](https://github.com/Pr00xxy "Pr00xxy (22 commits)")

---

Tags

composercomposer-pluginmagentomagento2magento2-modulecomposermagento2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prooxxy-magento2-composer-constraints/health.svg)

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

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.5M2.8k](/packages/ergebnis-composer-normalize)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5445.2M564](/packages/drupal-core-composer-scaffold)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M126](/packages/automattic-jetpack-autoloader)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1465.4M62](/packages/mnsami-composer-custom-directory-installer)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)

PHPackages © 2026

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