Interfaces and Dependency Injection in PHP
How I use interface definitions and dependency injection in PHP to build loosely coupled classes, illustrated with practical examples.
Tag
Building applications with PHP: language features, versions and practices. (Page 7/8)
There are 48 posts with this tag.
How I use interface definitions and dependency injection in PHP to build loosely coupled classes, illustrated with practical examples.
How I apply SRP — the S in SOLID — to PHP classes with concrete examples, moving beyond abstract theory.
A practical look at how I use scalar type declarations and return type definitions introduced in PHP 7.
PHP 7.0 was released this week. I share my first impressions on the performance gains, scalar type declarations, and return types.
I configured a PHP package from scratch and published it on Packagist so others could use it — here's how I did it.
An overview of PHP 5.6's variadic argument support and the new exponentiation operator, with practical examples.