PHPackages                             bonami/phpstan-collections - 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. bonami/phpstan-collections

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

bonami/phpstan-collections
==========================

Phpstan extension for bonami/collections library

0.5.0(1y ago)1141.8k↓26.4%1[3 PRs](https://github.com/bonami/phpstan-collections/pulls)MITPHPPHP ^8.1CI passing

Since Dec 21Pushed 1y ago2 watchersCompare

[ Source](https://github.com/bonami/phpstan-collections)[ Packagist](https://packagist.org/packages/bonami/phpstan-collections)[ RSS](/packages/bonami-phpstan-collections/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (19)Used By (0)

PHPStan extension for bonami/collections
========================================

[](#phpstan-extension-for-bonamicollections)

[![Build Status](https://github.com/bonami/phpstan-collections/workflows/CI/badge.svg)](https://github.com/bonami/phpstan-collections/workflows/CI/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/03b6a6d8ac4be00602cedc2c0a289aec688066cfa2a728e5f3442c56d61b7e50/68747470733a2f2f706f7365722e707567782e6f72672f626f6e616d692f7068707374616e2d636f6c6c656374696f6e732f762f737461626c65)](https://packagist.org/packages/bonami/phpstan-collections)[![License](https://camo.githubusercontent.com/bebb9a513cac82947193aed03e9b11a8295fcf47143000ebe39fed8ef908caed/68747470733a2f2f706f7365722e707567782e6f72672f626f6e616d692f7068707374616e2d636f6c6c656374696f6e732f6c6963656e7365)](https://github.com/bonami/phpstan-collections/blob/master/LICENSE)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [License](#features)
- [Contributing](#features)

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

[](#installation)

To use this extension, require it in Composer:

```
composer require --dev bonami/phpstan-collections
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include `extension.neon` in your project's PHPStan config:

```
includes:
    - vendor/bonami/phpstan-collections/extension.neon

```

License
-------

[](#license)

This package is released under the [MIT license](LICENSE).

Contributing
------------

[](#contributing)

If you wish to contribute to the project, please read the [CONTRIBUTING notes](CONTRIBUTING.md).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance46

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Recently: every ~238 days

Total

13

Last Release

417d ago

PHP version history (3 changes)0.3PHP &gt;=7.2|^8.0

0.4.0PHP &gt;=7.3|^8.0

0.5.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61839815?v=4)[Bonami.cz a.s.](/maintainers/bonami)[@bonami](https://github.com/bonami)

---

Top Contributors

[![jost125](https://avatars.githubusercontent.com/u/757188?v=4)](https://github.com/jost125 "jost125 (56 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bonami-phpstan-collections/health.svg)

```
[![Health](https://phpackages.com/badges/bonami-phpstan-collections/health.svg)](https://phpackages.com/packages/bonami-phpstan-collections)
```

###  Alternatives

[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

24115.0k10](/packages/johnbillion-wp-compat)

PHPackages © 2026

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