misaf/laravel-email-webhooks

Core package for handling email webhook events in Laravel applications.

Installs: 1

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/misaf/laravel-email-webhooks

v1.0.0 2026-01-27 12:19 UTC

This package is auto-updated.

Last update: 2026-01-27 21:54:15 UTC


README

Core package for handling email webhook events in Laravel applications.

Features

  • Easily handle incoming email webhook events.
  • Built for Laravel 10+.
  • Simple integration with your Laravel application.
  • Fully tested with Pest and Orchestra Testbench.

Requirements

  • PHP ^8.3
  • Laravel 10+

Installation

You can install the package via Composer:

composer require misaf/laravel-email-webhooks

Usage

Publish the service provider (if you need to customize):

php artisan vendor:publish --provider="Misaf\EmailWebhooks\Providers\EmailWebhooksServiceProvider"


Handle webhook events by creating your own controllers or using the provided routes:

use Misaf\EmailWebhooks\Facades\EmailWebhooks;

EmailWebhooks::listen('event-name', function ($payload) {
    // Handle the event
});


Configure the webhook routes in your routes/web.php or routes/api.php if needed:

Route::post('/email/webhook', [\Misaf\EmailWebhooks\Controllers\WebhookController::class, 'handle']);

Testing

The package uses Pest
 and Orchestra Testbench
 for testing:

composer test

Contributing

Feel free to submit issues or pull requests. All contributions are welcome!

License

This package is open-sourced under the MIT license.