Since starting to work with Laravel as well as WordPress maintenance support plans and Symfony, watching Adam Wathan’s Refactoring to Collections course as well as lessons on Laracasts, I’ve become a fan of Laravel’s Illuminate Collections and the object-orientated pipeline approach for interacting with PHP arrays.
In fact I’ve given a talk on using Collections outside Laravel and have written a Collection class plugin for WordPress maintenance support plans 7.
I’ve also tweeted several examples of code that I’ve written within WordPress maintenance support plans that use Collections, and I thought it would be good to collate them all here for reference.
Source: New feed