PHPackages                             yiistack/collision - 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. [CLI &amp; Console](/categories/cli)
4. /
5. yiistack/collision

ActiveLibrary[CLI &amp; Console](/categories/cli)

yiistack/collision
==================

Collision is a Yii extension that provides a set of classes for collision detection.

1.1.0(4y ago)217[2 PRs](https://github.com/yiistack/collision/pulls)MITPHPPHP ^8.0

Since Dec 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yiistack/collision)[ Packagist](https://packagist.org/packages/yiistack/collision)[ Docs](https://github.com/yiistack/collision)[ Patreon](https://www.patreon.com/rustamwin)[ RSS](/packages/yiistack-collision/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (5)Used By (0)

 [ ![](https://github.com/yiistack.png) ](https://github.com/yiistack)

Yii Stack Collision
===================

[](#yii-stack-collision)

[![Latest Stable Version](https://camo.githubusercontent.com/b7937e8046f2587fe475263978ece1bb887bab995c8868dbc58c1f50208ee025/68747470733a2f2f706f7365722e707567782e6f72672f796969737461636b2f636f6c6c6973696f6e2f762f737461626c652e706e67)](https://packagist.org/packages/yiistack/collision)[![Total Downloads](https://camo.githubusercontent.com/3f27d82dcf35b1c95a6875ef568096370c41eda0c24521ee51818c1491c79086/68747470733a2f2f706f7365722e707567782e6f72672f796969737461636b2f636f6c6c6973696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiistack/collision)[![Build status](https://github.com/yiistack/collision/workflows/build/badge.svg)](https://github.com/yiistack/collision/actions?query=workflow%3Abuild)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4e563966956a465f07b369031bd924ee89490122581e89fce33fabe710569d37/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969737461636b2f636f6c6c6973696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiistack/collision/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/e77721ee43cf96a0a3721d7f699e504c4a1cb164fe10cbfcd7676a7aa55899c4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969737461636b2f636f6c6c6973696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiistack/collision/?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/a03ae77e68415e4e101ba79f9a072fd4f9bc6823ef96fdb3aefded92f5ffff74/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969737461636b253246636f6c6c6973696f6e2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/yiistack/collision/master)[![static analysis](https://github.com/yiistack/collision/workflows/static%20analysis/badge.svg)](https://github.com/yiistack/collision/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/04d2ba3eac24b9c12d2624bd7b26ee0b34969a5e74d65c1c19965cdd9b1f44b6/68747470733a2f2f73686570686572642e6465762f6769746875622f796969737461636b2f636f6c6c6973696f6e2f636f7665726167652e737667)](https://shepherd.dev/github/yiistack/collision)

The package provides [Collision](https://github.com/nunomaduro/collision) adapter for Yii 3.0

Requirements
------------

[](#requirements)

- PHP 8.0 or higher.

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

[](#installation)

The package could be installed with composer:

```
composer require yiistack/collision --prefer-dist

```

General usage
-------------

[](#general-usage)

Add these definitions to your console app:

```
return [
    SolutionsRepository::class => FriendlySolutionsRepository::class,
    WriterContract::class => Writer::class,
];
```

### Unit testing

[](#unit-testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```
./vendor/bin/phpunit
```

### Mutation testing

[](#mutation-testing)

The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:

```
./vendor/bin/roave-infection-static-analysis-plugin
```

### Static analysis

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

1478d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6df37eedfd8233de51e178fd857e54fe816ee7ffaad28cea49736be83e00ed07?d=identicon)[rustamwin](/maintainers/rustamwin)

---

Top Contributors

[![rustamwin](https://avatars.githubusercontent.com/u/16498265?v=4)](https://github.com/rustamwin "rustamwin (38 commits)")

---

Tags

collisionconsoleerrorshacktoberfestyiiyii3consoleyii3collision

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yiistack-collision/health.svg)

```
[![Health](https://phpackages.com/badges/yiistack-collision/health.svg)](https://phpackages.com/packages/yiistack-collision)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)[nunomaduro/collision-adapter-symfony

Collision's adapter for Symfony applications. Error Reporting for console/command-line PHP applications.

4536.8k3](/packages/nunomaduro-collision-adapter-symfony)

PHPackages © 2026

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