This is an assorted list for three SPL iterator resources out there in the net. I’m sure there is more, so feel free to leave a comment I’m happy to add them.
The idea is to have you folks add a few choice tidbits of goodness you have stumbled over when using the SPL (Standard PHP Library).
The (not so) secret motivation here is to get some nice examples to go in the PHP documentation. 🙂
- SplHeap (SplMinHeap; SplMaxHeap)
This repository aims to be a community wiki (a la git pull requests) of useful PHP Standard Template Library (SPL) examples. The php.net website lacks user submitted examples in the SPL department, so Queen City PHP (http://qcphp.org) is taking the initiative to provide examples and spread the word.
All of the base level PHP files are working examples of their SPL iterator counterparts. Documentation will be added to the readme in the future.
- NavBuilder (CachingIterator)
- Observable (SplSubject; SplObserver)
By Marcus Börger, SPL PHP core hacker