- Bypassing a Slow Composer Repository
- Slow Composer Followup
- Getting Started with PHP Composer and Magento
- PHP: The Right Way; A Review
- PSR and Code Style Guidelines
- Sellvana: Developer’s Alpha Review
- PHP Primer: Type Hints
- PHP Primer: Namespaces
- PHP Primer: Interfaces
- Design Patterns, PHP, and Magento
- PHP-FPM and File Permissions
- Why did the Elephant join the Guild?
When I first saw PHP: The Right Way floating around my twitter feed, I was a little skeptical. I can’t remember where I first saw the link, but my general memory is its promotion came from the camp of PHP developers who seem to envy the sort of childish drama usually reserved for hacker news rubyists.
Fortunately, my preconceptions about the book were completely wrong.
Rather than create a prescriptive pamphlet, Josh Lockhart and Phil Sturgeon, leading a collaborative effort, created what amounts to a snapshot of PHP development for programmers, circa 2014. The next time that ruby intern you hired turns up his nose as your PHP system because he looked at Joomla once in the 6th grade, this is the book you hand him.
PHP: The Right Way outlines everything available to a modern PHP programer. From getting PHP setup on your system, the environments available, modern dependency management with composer, secure coding practices, available language features like anonymous functions, test frameworks, etc, this book is a primer for PHP “done right”. Perfect for the new developer wanting to avoid the sins of the past, and recommended for the experienced developer who may not realize everything the PHP community at large has been up to for the past 10 years.
There’s no particular framework or component composition recommended — the closest PHP: The Right Way comes to being prescriptive is in their description of the concepts of Dependency Injection, Inversion of Control, and Dependency Inversion Principle, but even this section of the book is focused on briefing the PHP developer on what they’ll see out in the world so they can understand what’s happening in modern frameworks. The design patterns are explained in plain english with examples that make the problem these patterns are trying to solve clear.
This is not Gang of Two for PHP.
Available for free via the web, or via Leanpub (with 100% of Leanpub royalties going to the EFF), there’s no reason not to pickup a copy of this book. Give a copy to your team to set expectations, or find solace in its pages as you plot your escape to a better job. PHP: The Right Way is required reading for anyone planning on making a long term career as a PHP programmer.