PHP Event-emitter Resources