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)110.5k↓12%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 1mo ago

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

32

—

LowBetter than 72% of packages

Maintenance42

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

482d 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

[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.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

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