yiistack / collision
Collision is a Yii extension that provides a set of classes for collision detection.
Fund package maintenance!
Patreon
Requires
- php: ^8.0
- nunomaduro/collision: ^5.1
- yiisoft/di: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/infection-static-analysis-plugin: ^1.18
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.22
- yiisoft/yii-console: ^1.0
- yiisoft/yii-event: ^1.0
This package is auto-updated.
Last update: 2024-11-17 18:18:28 UTC
README
Yii Stack Collision
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