#tukio — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #tukio, aggregated by home.social.
-
#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
-
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.)
-
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.
-
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. 🙂
-
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.