Download the PHP package rojtjo/laravel-auto-subscriber without Composer
On this page you can find all versions of the php package rojtjo/laravel-auto-subscriber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rojtjo/laravel-auto-subscriber
More information about rojtjo/laravel-auto-subscriber
Files in rojtjo/laravel-auto-subscriber
Package laravel-auto-subscriber
Short Description laravel-auto-subscriber
License MIT
Homepage https://github.com/rojtjo/laravel-auto-subscriber
Informations about the package laravel-auto-subscriber
laravel-auto-subscriber
Automatically subscribe to all events for which your subscriber contains a handler. Under the hood we use reflection to detect all listeners defined on the subscriber.
Installation
You can install the package via composer:
Usage
All you have to do is use the Rojtjo\LaravelAutoSubscriber\AutoSubscriber
trait on your subscriber class. Also make
sure to register your subscriber in the EventServiceProvider
like you're used to.
Example
This would equivalent to a handwritten subscriber like shown below.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Roj Vroemen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-auto-subscriber with dependencies
illuminate/contracts Version ^9.2.0|^10.0|^11.0
illuminate/collections Version ^9.2.0|^10.0|^11.0