https://github.com/aedart/athenaeum-events
[READ ONLY] Athenaeum Events package - see https://github.com/aedart/athenaeum
https://github.com/aedart/athenaeum-events
events listeners subscribers
Last synced: 10 months ago
JSON representation
[READ ONLY] Athenaeum Events package - see https://github.com/aedart/athenaeum
- Host: GitHub
- URL: https://github.com/aedart/athenaeum-events
- Owner: aedart
- License: bsd-3-clause
- Created: 2020-01-18T18:55:54.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-07-21T08:07:55.000Z (11 months ago)
- Last Synced: 2025-07-21T09:32:02.144Z (11 months ago)
- Topics: events, listeners, subscribers
- Language: PHP
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Athenaeum Events
The Athenaeum Events package offers way to register [Event Listeners](https://laravel.com/docs/6.x/events#registering-events-and-listeners) and [Subscribers](https://laravel.com/docs/6.x/events#event-subscribers) via configuration.
It serves as an alternative registration method than that provided by [Laravel](https://laravel.com).
## Example:
```php
[
\Acme\Users\Events\UserCreated::class => [
\Acme\Users\Listeners\LogNewUser::class,
\Acme\Users\Listeners\SendWelcomeEmail::class,
],
'payments.*' => [
\Acma\Payments\Listeners\VerifyPaymentSession::class
],
// ... etc
],
'subscribers' => [
\Acme\Orders\Subscribers\OrderEventsSubscriber::class,
\Acme\Users\Subscribers\TrialPeriodSubscriber::class,
// ... etc
]
];
```
## Documentation
Please read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.
## Repository
The mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)
## Versioning
This package follows [Semantic Versioning 2.0.0](http://semver.org/)
## License
[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package