Skip to content
generated from yiistack/template

Collision adapter for Yii 3.0

License

Notifications You must be signed in to change notification settings

yiistack/collision

Repository files navigation

Yii Stack Collision


Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage

The package provides Collision adapter for Yii 3.0

Requirements

  • PHP 8.0 or higher.

Installation

The package could be installed with composer:

composer require yiistack/collision --prefer-dist

General usage

Add these definitions to your console app:

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

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

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

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm