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)1146.1k↑19.4%1[1 issues](https://github.com/bonami/phpstan-collections/issues)[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 today

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

35

—

LowBetter than 77% of packages

Maintenance22

Infrequent updates — may be unmaintained

Popularity34

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

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

[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M118](/packages/deptrac-deptrac)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87718.9k56](/packages/ticketswap-phpstan-error-formatter)[slam/phpstan-extensions

Slam extension of phpstan

712.6M81](/packages/slam-phpstan-extensions)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

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