# tactician-phpstan **Repository Path**: mirrors_simPod/tactician-phpstan ## Basic Information - **Project Name**: tactician-phpstan - **Description**: Static analysis for a small, flexible command bus. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Tactician-PHPStan [![Travis CI](https://api.travis-ci.org/thephpleague/tactician-phpstan.svg?branch=master)](https://travis-ci.org/thephpleague/tactician-phpstan) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thephpleague/tactician-phpstan/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/thephpleague/tactician-phpstan/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/thephpleague/tactician-phpstan/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/thephpleague/tactician-phpstan/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/thephpleague/tactician-phpstan/badges/build.png?b=master)](https://scrutinizer-ci.com/g/thephpleague/tactician-phpstan/build-status/master) [![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/thephpleague/tactician-phpstan/blob/master/LICENSE) Static analysis for [a small, flexible command bus](https://github.com/thephpleague/tactician). Traditionally, command buses can obscure static analysis. The Tactician PHPStan plugin helps bring stronger type checking by finding missing handler classes, validating handler return types and more. See the [full docs](http://tactician.thephpleague.com) or the examples directory to get started. ## Install Using Composer: `composer require league/tactician-phpstan` ## Register Plugin If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
Manual installation If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config: ``` includes: - vendor/league/tactician-phpstan/extension.neon ```
## Configuration You'll need to make your `CommandToHandlerMapping` available to PHPStan. The easiest way to do this is to create a small bootstrap file that returns the same Handler configuration you use in your app. A simple version of this might look like: ~~~ # handler-mapper-loader.php