#Tukio 2.0 for #PHP has been released! The premiere stand-alone #PSR14 event dispatcher now features near-instant listener lookups, a simplified API (with full backward compatibility), more automation, more robust ordering, better attribute support, and more!

Give it a try today.

https://peakd.com/hive-168588/@crell/tukio-20-released-event-dispatcher-for-php

Tukio 2.0 released - Event Dispatcher for PHP | PeakD

Tukio v2 is here, now powered by topological sorting and AttributeUtils!... by crell

PeakD

If you use #Tukio in your #PHP application for #PSR14 #EventDispatcher support, version 2 is nearly ready! It should be released within less than a month.

If you want to preview it and make sure I didn't break anything unintentionally, I have tagged a 2.0.0-rc1 release, and the code is available in this PR:

https://github.com/Crell/Tukio/pull/24

Please report issues now while I can still fix them! 馃檪 (Or let me know it's all good, which is also helpful.)

Tukio v2 by Crell 路 Pull Request #24 路 Crell/Tukio

In progress work on Tukio version 2. Review if you like.

GitHub

For the next version of `ghostwriter/psalm-plugin`, we'll be able to listen to all of @psalm events and dispatch a custom events and listeners using `ghostwriter/container` and `ghostwriter/event-dispatcher`.

#PHPUnit #PsalmPHP #Mockery #PSR11 #PSR14 #PHP

I just tagged 1.6.0 of #Tukio, my #PSR14 event dispatcher for #PHP.

You can now tell the provider compiler what events you have, and it will generate constant-small-time lookup tables for you, making the overhead of the event system almost zero.

This is the last 7.4-compat release. 2.0 will require at least PHP 8.1, possibly 8.2, and involve a fair bit of cleanup. Expect very minor API changes, but I'll try to keep them to an absolute minimum and provide bridge code.

https://github.com/Crell/Tukio

GitHub - Crell/Tukio: A complete and robust implementation of the PSR-14 EventDispatcher specification.

A complete and robust implementation of the PSR-14 EventDispatcher specification. - Crell/Tukio

GitHub

Ah ha! I got something working, at least. My #PSR14 event dispatcher now has a "virtually instantaneous" mode. 馃檪 #PHP

New release with this improvement coming soon.

https://github.com/Crell/Tukio/pull/21

Opt-in optimization for the compiled provider by Crell 路 Pull Request #21 路 Crell/Tukio

Description This PR lets the user specify on the ProviderBuilder what events it should optimize. Once we have the class name of those events, we can pre-compute all the listeners that will apply t...

GitHub
After talking about arrays, iterable and Traversable, @[email protected] goes for #psr14's ListenerProviderInterface in his talk. #phpugffm