PHPackages                             aheinis/patch-risk-detector - 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. aheinis/patch-risk-detector

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

aheinis/patch-risk-detector
===========================

A composer plugin to detect risky and safe patches.

v1.0.2(1y ago)113.0k↓18.9%MITPHP

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Andrin-Heinis/patch-risk-detector)[ Packagist](https://packagist.org/packages/aheinis/patch-risk-detector)[ RSS](/packages/aheinis-patch-risk-detector/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Patch Risk Detector
===================

[](#patch-risk-detector)

[![Packagist](https://camo.githubusercontent.com/86eeded3192508da1af2bf5641696dd7bcbc7ed75de39509a3b60376ace5d0b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616865696e69732f70617463682d7269736b2d6465746563746f722e737667)](https://packagist.org/packages/aheinis/patch-risk-detector)
[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

🔍 A Composer plugin that detects risky and safe patches.

📦 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require aheinis/patch-risk-detector
```

For development or local testing:

```
composer require aheinis/patch-risk-detector --dev
```

🚀 Usage
-------

[](#-usage)

Once installed, the plugin automatically integrates with Composer and detects patch risks.

Example command:

```
composer patch-risk-detect
```

🔧 Configuration
---------------

[](#-configuration)

If needed, you can configure the plugin using `composer.json`:

```
{ "extra": { "patch-risk-detector": { "log_level": "warning" } } }
```

🛠 Development
-------------

[](#-development)

If you want to modify or contribute to the plugin:

1. Clone the repository:

```
git clone https://github.com/Andrin-Heinis/patch-risk-detector.git cd patch-risk-detector
```

2. Install dependencies
3. Run local tests

🤝 Contributing
--------------

[](#-contributing)

Pull requests are welcome! If you find any issues or want to suggest features, please open an [Issue](https://github.com/Andrin-Heinis/patch-risk-detector/issues).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

3

Last Release

527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dd915ffaa6562c9d04ea21627c78cffbc9322a905684e1b7b69a72e4b08f037?d=identicon)[andrin.heinis](/maintainers/andrin.heinis)

---

Top Contributors

[![Andrin-Heinis](https://avatars.githubusercontent.com/u/184954450?v=4)](https://github.com/Andrin-Heinis "Andrin-Heinis (15 commits)")

### Embed Badge

![Health badge](/badges/aheinis-patch-risk-detector/health.svg)

```
[![Health](https://phpackages.com/badges/aheinis-patch-risk-detector/health.svg)](https://phpackages.com/packages/aheinis-patch-risk-detector)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M564](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M340](/packages/phpro-grumphp-shim)

PHPackages © 2026

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