PHPackages                             lencse/min-coverage - 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. lencse/min-coverage

ActiveLibrary[Testing &amp; Quality](/categories/testing)

lencse/min-coverage
===================

Check minimum coverage

v1.0.0(7y ago)06271MITPHP

Since Mar 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lencse/php-min-coverage)[ Packagist](https://packagist.org/packages/lencse/min-coverage)[ RSS](/packages/lencse-min-coverage/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (8)Used By (1)

PHP Min coverage test
=====================

[](#php-min-coverage-test)

[![PHP version](https://camo.githubusercontent.com/f164a6bc467fff8903cf530b7639df193f7d285ae10fb6580fd49f8b94dd37c3/68747470733a2f2f62616467652e667572792e696f2f70682f6c656e6373652532466d696e2d636f7665726167652e737667)](https://badge.fury.io/ph/lencse%2Fmin-coverage)[![Build Status](https://camo.githubusercontent.com/6ed064a87fac825194358217e03ad03be767d39b4d034a330b00b45e7572d332/68747470733a2f2f7472617669732d63692e6f72672f6c656e6373652f7068702d6d696e2d636f7665726167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lencse/min-coverage)

Install
-------

[](#install)

Via Composer

```
composer require --dev lencse/min-coverage
```

Usage
-----

[](#usage)

### Checking code coverage

[](#checking-code-coverage)

```
# Create a Clover XML output of your project with PHPUnit
phpunit --coverage-clover build/logs/clover.xml
# Check code coverage
vendor/bin/min-coverage --min-coverage 95 --clover-file build/logs/clover.xml
```

#### Integrating into composer.json

[](#integrating-into-composerjson)

```
{
    "scripts": {
        "test-all": [
            "phpunit --coverage-clover build/logs/clover.xml",
            "vendor/bin/min-coverage --min-coverage 95 --clover-file build/logs/clover.xml"
        ]
    }
}
```

```
composer test-all
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

7

Last Release

2624d ago

Major Versions

v0.1.3 → 1.0.x-dev2019-03-08

0.0.x-dev → v1.0.02019-03-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec3c8272a022c684d236c550d4bce67be01b1ced7761ea6436b27188f9d01619?d=identicon)[lencse](/maintainers/lencse)

---

Top Contributors

[![lencse](https://avatars.githubusercontent.com/u/191887?v=4)](https://github.com/lencse "lencse (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lencse-min-coverage/health.svg)

```
[![Health](https://phpackages.com/badges/lencse-min-coverage/health.svg)](https://phpackages.com/packages/lencse-min-coverage)
```

###  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)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

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

PHPackages © 2026

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