PHP Style 1: Library to help with coding style

Опубликовано: 30 Март 2026
на канале: XD with Josh Bruce
23
1

Since recording the video PSR-12 has been accepted by the PHP-FIG. There is something to be said for coding styles and consistency within a codebase and across a team. Just like a word processing application can show you stylistic problems as you type, there are tools that can do the same for your code editors. This might be a library to help accomplish that in a simple, flexible way.

Why TDD?
Safety net for refactoring.
Safety net for re-engineering.
Executable documentation for our APIs and interactions.

Why NOT TDD?
Prove correctness or completeness.

These are unscripted, unrehearsed, mostly unedited, and with minimal prep-work. A more raw look at software development. This was started with a new user on my laptop; so, local settings and shortcuts are not present and will be introduced as we go. Basically, imagine pair or mob programming from a fresh laptop and a pretty big time delay.