#php 8 has been around for more than 4 years, but today I finally created my own custom attribute.

My attribute is called 'After', and I am going to use it for my event listeners. Here is an example of how that looks like:

#eventSourcing

https://gitlab.com/rva-vzw/krakboem/-/merge_requests/40/diffs

Use PHP attributes for the event listener, #42 (!40) · Merge requests · rva-vzw / krakboem · GitLab

PHP interfaces and some base classes for CQRS and event sourcing.

GitLab
@vohanj that great, attributes are awesome! We are extensively using attributes in https://github.com/patchlevel/event-sourcing. In our case the attribute is called `Subscribe`. Maybe you can get some inspiration for another attribute.
GitHub - patchlevel/event-sourcing: An event sourcing library, complete with all the essential features, powered by the reliable Doctrine ecosystem and focused on developer experience.

An event sourcing library, complete with all the essential features, powered by the reliable Doctrine ecosystem and focused on developer experience. - patchlevel/event-sourcing

GitHub