#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

Thanks everyone for the feedback. Basically everyone hated the idea, so I didn't do that. 馃檪

Instead, I went with a fake-ADT approach, which allowed me to simplify a ton of code, remove a lot of duplicate code, and have only the slightest API break in an edge case I don't think anyone has actually used.

#Tukio v2 is looking kinda pretty.

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

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

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

GitHub

I am also considering removing the SubscriberInterface from #Tukio v2. With attributes, I don't see how it serves much point anymore. Possibly more BC issues here, but resolvable. Let me know if this would break your world for some reason. #PHP

https://github.com/Crell/Tukio/issues/23

Remove Subscriber interface and rely on attributes? 路 Issue #23 路 Crell/Tukio

For Tukio v2, I am considering removing the Subscriber interface. It's a bit fiddly, and in practice there is extremely little that you cannot do just as well with attributes now. Certainly any sta...

GitHub

Feedback request for #Tukio, the #PHP event dispatcher library. If you're using it currently, please indicate if this change in v2 would cause major issues for you: https://github.com/Crell/Tukio/issues/22

Silence will be taken to mean it's fine to do. 馃檪

Remove support for repeating attributes? 路 Issue #22 路 Crell/Tukio

This is an informational request. For Tukio v2, I am trying to clean up some legacy design. One of the things that I don't think I thought through very well is that attribute-based registration sup...

GitHub

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