← Back to Works

MeliorStan

MeliorStan is a PHP static analysis package that extends PHPStan with over 30 custom rules designed to improve code quality and enforce consistency standards. It provides advanced checks for naming conventions, code smells, control flow, and design patterns, drawing inspiration from PHPMD while offering modern flexibility through configuration.

Built for PHP 8.3+ and PHPStan 2.1+, MeliorStan lets developers selectively enable rules in their phpstan.neon configuration to match their project's standards. Examples include enforcing PascalCase for class names, camelCase for methods, detecting unused variables, and flagging boolean parameters that suggest a function is doing too much.