Skip to content

Repository containing all the PHPStan rules from the book "Recipes for Decoupling"

License

Notifications You must be signed in to change notification settings

matthiasnoback/recipes-for-decoupling-phpstan-rules

Repository files navigation

PHPStan rules from the book "Recipes for Decoupling" by Matthias Noback

In the book "Recipes for Decoupling" we discuss how to decouple from web and CLI frameworks, ORMs, validation libraries, and test frameworks. While doing so, we develop a number of custom rules for use with PHPStan. That way we can use automated static analysis to keep our code decoupled in the long run.

This project contains all the final versions of each of the rules from the book. They are not production-ready but feel free to use them as a starting point for your own custom rules.

Cover of "Recipes for Decoupling"

About

Repository containing all the PHPStan rules from the book "Recipes for Decoupling"

Resources

License

Stars

Watchers

Forks

Languages