PSR-14 is the latest specification from the PHP Framework Interoperability Group (PHP-FIG), this time addressing event dispatching. Many frameworks and applications contain an “event dispatcher”, “message bus”, “hook system”, or some other variation on the same basic concept, but to date they are all incompatible with each other.
No more! The PSR-14 spec offers a way to interleave these disparate systems together, making it far easier to swap individual libraries into the framework of your choice. It goes beyond the basic “register and call” object that most systems use to make it easier to plug different implementations together, offering an easier experience and greater flexibility for library authors.
This session will cover how PSR-14 works, some examples of how to leverage it effectively, and how to adopt it alongside, and even encompassing, your existing one-off tooling.