Hook / Event helper library for PHP