Level 0: Implementing PHP Static Analysis on an 8-year-old codebase
A practical walk-through of using PHPStan static analysis on a legacy codebase, tips on setup, rule levels, and error patterns encountered with Larastan.
A practical walk-through of using PHPStan static analysis on a legacy codebase, tips on setup, rule levels, and error patterns encountered with Larastan.
A practical refactoring technique using lookup tables to replace condition-heavy logic, making PHP code easier to read, extend, and maintain.
Practical advice for writing cleaner, more readable PHP code, focusing on simplicity, consistency, and real-world maintainability over clever abstractions.
A deeper look at working with PHP backed enums and Laravel collections, including transforming enum values into arrays and appending custom attributes.
A thoughtful exploration of coding principles like DRY, KISS, and YAGNI versus strict coding standards, and why simplicity often wins in real projects.