aedart/athenaeum-events

Offers a way to register event listeners and subscribers via configuration


README

The Athenaeum Events package offers way to register Event Listeners and Subscribers via configuration.

It serves as an alternative registration method than that provided by Laravel.

Example:

<?php
return [

    'listeners' => [

        \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 for additional information.

Repository

The mono repository is located at github.com/aedart/athenaeum

Versioning

This package follows Semantic Versioning 2.0.0

License

BSD-3-Clause, Read the LICENSE file included in this package