povils/phpmnd
PHPMND detects magic numbers in PHP code to improve readability and maintainability. Flags numeric literals that should be constants (0 and 1 ignored by default). Install via Composer and run vendor/bin/phpmnd locally or globally in CI and dev workflows.
Adopt if:
Look elsewhere if:
"This update ensures phpmnd works flawlessly with Symfony 8 and PHP 8.5—the same modern stack we’re targeting for [Project X]’s refactor. It’s like upgrading your car’s safety features without changing the engine: same reliability, but now it handles the latest highways. For example, if we upgrade to Symfony 8 next quarter, this tool will automatically catch undocumented values in new controllers, reducing debug time. It’s a 5-minute setup with a 5-year payoff. Competitors charge for this; this is open-source and just got more future-proof."
*"v3.6.1 adds official support for Symfony 8 and PHP 8.5, which means:
*"Good news: phpmnd now plays nice with Symfony 8 and PHP 8.5! That means if you’re using the latest PHPUnit or Symfony, you can run:
composer require --dev povils/phpmnd:^3.6
./vendor/bin/phpmnd check src/ --config=phpmnd.xml
and it’ll work without a hitch. No more ‘works on my machine’ excuses when upgrading dependencies. Pro tip: Use the --allow-magic-numbers flag for known safe values (e.g., true/false) to avoid noise."*
How can I help you explore Laravel packages today?