yiisoft / router-composer-attribute-collector
Router collector from PHP Attributes using composer plugin
Package info
github.com/yiisoft/router-composer-attribute-collector
pkg:composer/yiisoft/router-composer-attribute-collector
Requires
- php: 8.1 - 8.5
- olvlvl/composer-attribute-collector: ^2.0
- yiisoft/router: dev-add-attributes as 4
Requires (Dev)
- maglnet/composer-require-checker: ^4.7.1
- nyholm/psr7: ^1.8
- phpunit/phpunit: ^10.5.45
- rector/rector: ^2.0.9
- roave/infection-static-analysis-plugin: ^1.35
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^5.26.1 || ^6.8.6
- yiisoft/code-style: ^1.0
- yiisoft/router-fastroute: ^4.0
- yiisoft/test-support: ^3.2
This package is auto-updated.
Last update: 2026-03-30 13:20:37 UTC
README
Yii Router Composer Attribute Composer Collector
The package provides a router collector for Yii Router that collects routes declared through attributes.
Requirements
- PHP 8.1 - 8.5.
Installation
The package could be installed with composer:
composer require yiisoft/router-composer-attribute-collector
General usage
Testing
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 with Infection Static Analysis Plugin. 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
Code style
Use Rector to make codebase follow some specific rules or use either newest or any specific version of PHP:
./vendor/bin/rector
Dependencies
Use ComposerRequireChecker to detect transitive Composer dependencies.
License
The Yii Router Composer Attribute Composer Collector is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.