kael-shipman / php-std-traits
An assortment of traits, exceptions and minor classes that help to implement standard PHP interfaces like ArrayAccess, Iterator, etc., as well as a few other useful features.
Installs: 1 074
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: >=4.8
README
This package provides some basic traits that help to implement PHP interfaces like ArrayAccess, Iterator, and Countable.
It also provides an Observable Trait that implements an event system, as well as an Event object and interface and some special exceptions for use among the traits.
These are small enough that you should be able to read through them to get a good idea of how to use them. More documentation still to come....