PHPMaster.com: The Single Responsibility Principle
On PHPMaster.com today Alejandro Gervasio has a new tutorial posted about the Single Responsibility Principle - a guideline that states that each class should only have one "area of concern" and not...
View ArticleZumba Engineering Blog: Mocking Singleton PHP classes with PHPUnit
On the Zumba Engineering blog today Chris Taylor has a new post about mocking in PHPUnit, specifically how to handle those pesky Singleton methods lurking around your codebase. In many of our...
View ArticleAndrew Podner: Using Final to Prevent Overrides and Extension
In the latest post to his site Andrew Podner takes a quick look at something you don't see too much in PHP applications but is a familiar concept to some coming in to the language from others - using...
View ArticleDerick Rethans: Mongo is dead, long live MongoClient
In this recent post to his site Derick Rethans mentions the shiny new "MongoClient" class that the latest release of the Mongo PHP drivers provides. This afternoon we published version 1.3.0 of the...
View ArticleSherif Ramadan: PHP OOP: Objects Under The Hood
In another of his series looking "under the covers" at what actually happens in the PHP language during its use, Sharif Ramadan has posted this look at the object handling in PHP's OOP functionality....
View ArticleSimon Jodet: Partial mocks with Mockery
Simon Jodet has a new post to his site for the Mockery users out there (a mocking tool used in unit testing) showing how he created his partial object mocks. I really like atoum and highly recommend...
View ArticlePHP.net: PHP 5.5.0 Alpha4 released
On PHP.net today they've announced the tagging and release of the latest alpha for the PHP 5.5.0 series - PHP 5.5.0 alpha4: The PHP development team announces the release of PHP 5.5.0alpha4. This...
View ArticleNetTuts.com: Taming Slim 2.0
On NetTuts.com today there's a new tutorial posted about "taming" Slim 2.0, the latest version of the popular PHP microframework. They look at application structure and share some tips to using this...
View ArticlePixelstech.com: Should we use Abstract class or Interface?
On the Pixelstech.com site today there's a new post that talks about the differences between abstract classes and interfaces and when's the best time to use either (or both). When we write programs,...
View ArticleThe PHP.cc: PHP 5.5: New CLASS Constant
The PHP.cc have posted another article in their series looking at the new features that come with the latest release of PHP (5.5). In this new post they cover the "CLASS" constant. Last week, the...
View ArticleRussell Walker: Public properties, getters and setters, or magic?
Russell Walker has a recent post to his site looking at different ways to work with class properties including using them as public properties or using getters and setters. Opinion seems to be divided...
View ArticleSitePoint PHP Blog: Collection Classes in PHP
On the SitePoint PHP blog a new tutorial introduces you to collection classes in PHP, replacing the more basic array with something with a bit more power. Applications frequently have objects that...
View ArticleMathias Verraes: Verbs in Class Names
Mathias Verraes has an interesting post to his site suggesting that using verbs in class names can make for easier to understand and easier to read code - more "natural language." When you first...
View ArticlePHPixie: Benchmarking Autoloading vs Combining classes into a single file
On the PHPixie site there's a new post comparing the overall performance of autoloading versus a single-file approach when it comes to getting the best for your application. They point to the Fat-free...
View ArticleChristian Weiske: PHP: Cannot access property started with '\o'
Christian Weiske had an interesting situation pop up in one of his applications around a call to a variable with an interesting name. Some days ago I saw the following fatal error for the first time...
View ArticleBenjamin Eberlei: Feature Flags and Doctrine Entities
In a new post to his site Benjamin Eberlei takes a look at the idea of "feature flags" (settings to turn on and off major features) and how they can be used with Doctrine entities to handle sync...
View ArticleGonzalo Ayuso: Auto injecting dependencies in PHP objects
In his latest post Gonzalo Ayuso shows how you can automatically inject dependencies into your PHP objects with the help of Pimple, a simple dependency injection container. I must admit I don't really...
View ArticleVG Tech: Comparing Your Privates in PHP
In a new post to their blog, the VG Tech folks talk about "comparing your privates" with a "hidden" feature of PHP. Don't worry, they're referring to private class properties on object instances...
View ArticleMathias Verraes: Final Classes
Mathias Verraes has posted some of his thoughts about using "final" in classes and what kind of impression it gives about your code. I make all my classes final by default. I even configured the...
View ArticleStephan Hochdörfer: Controller classes vs. Action classes
In this new post to his site Stephan Hochdörfer covers some of his own thoughts about the recently proposed application structure from Paul Jones, the "Action-Domain-Response" pattern. In this post...
View Article