github.com/ghostwriter · @ghostwriter
5 followers · 48 posts · Server phpc.social

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

Last updated 1 year ago

Larry Garfield · @Crell
1231 followers · 5558 posts · Server phpc.social

I just tagged 1.6.0 of , my event dispatcher for .

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.

github.com/Crell/Tukio

#tukio #psr14 #php

Last updated 1 year ago

Larry Garfield · @Crell
1210 followers · 5426 posts · Server phpc.social

Ah ha! I got something working, at least. My event dispatcher now has a "virtually instantaneous" mode. 🙂

New release with this improvement coming soon.

github.com/Crell/Tukio/pull/21

#psr14 #php

Last updated 1 year ago