PHPackages                             letmesendemail/letmesendemail-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. letmesendemail/letmesendemail-laravel

ActiveLibrary[API Development](/categories/api)

letmesendemail/letmesendemail-laravel
=====================================

LetMeSendEmail Laravel Plugin

1.0.4(2mo ago)0228MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI failing

Since Mar 15Pushed 2mo agoCompare

[ Source](https://github.com/apsonex/letmesendemail-laravel)[ Packagist](https://packagist.org/packages/letmesendemail/letmesendemail-laravel)[ Docs](https://letmesend.email/)[ RSS](/packages/letmesendemail-letmesendemail-laravel/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (18)Versions (6)Used By (0)

LetMeSendEmail Laravel SDK
==========================

[](#letmesendemail-laravel-sdk)

[![Tests](https://camo.githubusercontent.com/fe5c252d8814f862eb153e34e7b31834b703ed5c1ce08dd915b0fb9dec732c69/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6170736f6e65782f6c65746d6573656e64656d61696c2d6c61726176656c2f746573742d7068702e796d6c3f6c6162656c3d7465737473267374796c653d666f722d7468652d6261646765266c6162656c436f6c6f723d303030303030)](https://github.com/apsonex/letmesendemail-laravel/actions/workflows/test-php.yml)[![Packagist Downloads](https://camo.githubusercontent.com/404b91bb512fcf2069801108f672dd30523b397d3f46f0149ceb3dc015675ad3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65746d6573656e64656d61696c2f6c65746d6573656e64656d61696c2d6c61726176656c3f7374796c653d666f722d7468652d6261646765266c6162656c436f6c6f723d303030303030)](https://packagist.org/packages/letmesendemail/letmesendemail-laravel)[![Packagist Version](https://camo.githubusercontent.com/b232a9e5c78ef7227669485a040037d50edf7118df3ac58a18bf6018689f80ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65746d6573656e64656d61696c2f6c65746d6573656e64656d61696c2d6c61726176656c3f7374796c653d666f722d7468652d6261646765266c6162656c436f6c6f723d303030303030)](https://packagist.org/packages/letmesendemail/letmesendemail-laravel)[![License](https://camo.githubusercontent.com/82fbd8c5331e9775d4d1c270dc62fb430ea87b8d6ab8ac16627163bf0687442f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6170736f6e65782f6c65746d6573656e64656d61696c2d6c61726176656c3f636f6c6f723d396366267374796c653d666f722d7468652d6261646765266c6162656c436f6c6f723d303030303030)](https://github.com/apsonex/letmesendemail-laravel/blob/master/LICENSE)

Official Laravel integration for [LetMeSendEmail](https://letmesend.email), a modern email API service. This package provides:

- Full Laravel SDK for LetMeSendEmail
- Symfony Mailer transport
- Webhook handling with signature verification
- Facade for convenient API access
- Event dispatching for all email lifecycle events
- Testing utilities with fake responses

For more details about the core API, visit [letmesendemail-php GitHub](https://github.com/apsonex/letmesendemail-php).

---

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Facade](#facade)
    - [Sending Emails via Symfony Mailer](#sending-emails-via-symfony-mailer)
    - [Testing &amp; Fake Responses](#testing--fake-responses)
- [Webhooks](#webhooks)
    - [Controller Setup](#controller-setup)
    - [Middleware Verification](#middleware-verification)
- [Events](#events)
- [Exceptions](#exceptions)
- [Contributing](#contributing)
- [License](#license)

---

Installation
------------

[](#installation)

Install via Composer:

```
composer require letmesendemail/letmesendemail-laravel
```

Laravel will automatically register the service provider via package discovery.

---

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="LetMeSendEmail\Laravel\LetMeSendEmailServiceProvider" --tag="config"
```

Add your API key and webhook secret to `.env`:

```
LMSE_API_KEY=your_api_key_here
LMSE_WEBHOOK_SECRET=whsec_your_webhook_secret
```

---

Usage
-----

[](#usage)

### Facade

[](#facade)

Access LetMeSendEmail API via the facade:

```
use LetMeSendEmail\Laravel\Facades\LetMeSendEmail;

// Send an email
$response = LetMeSendEmail::emails()->send([
    'from' => 'hello@yourdomain.com',
    'to' => 'recipient@example.com',
    'subject' => 'Hello!',
    'text' => 'This is a test email.',
]);

// Access other resources
$domains = LetMeSendEmail::domains();
$contacts = LetMeSendEmail::contacts();
$categories = LetMeSendEmail::contactCategories();
$tags = LetMeSendEmail::contactTags();
```

Fake responses for testing:

```
LetMeSendEmail::fake('emails/send');
```

Visit composer vendor directory `vendor/letmesendemail/letmesendemail-php/tests/Fixtures` for available fake responses.

---

### Sending Emails via Symfony Mailer

[](#sending-emails-via-symfony-mailer)

Configure the transport in `config/mail.php`:

```
'mailers' => [
    'letmesendemail' => [
        'transport' => 'letmesendemail',
    ],
],
```

Send an email:

```
use Illuminate\Support\Facades\Mail;
use Symfony\Component\Mime\Email;

$email = (new Email())
    ->from('hello@yourdomain.com')
    ->to('recipient@example.com')
    ->subject('Hello')
    ->text('This is a test email')
    ->html('This is a test email');

Mail::mailer('letmesendemail')->send($email);
```

Supports attachments and headers:

```
$email->attach('File contents', 'filename.txt', 'text/plain');
$email->getHeaders()->addTextHeader('X-Custom-Header', 'value');
```

---

Webhooks
--------

[](#webhooks)

### Controller Setup

[](#controller-setup)

The package provides a webhook controller:

```
use LetMeSendEmail\Laravel\Http\Controllers\WebhookController;

Route::post('/letmesendemail/webhook', [WebhookController::class, 'handleWebhook']);
```

This controller dispatches events based on the webhook `type`.

---

### Middleware Verification

[](#middleware-verification)

If you set `webhook.secret` in the config, the `VerifyWebhookSignature` middleware validates the signature automatically:

```
use LetMeSendEmail\Laravel\Http\Middleware\VerifyWebhookSignature;

Route::post('/letmesendemail/webhook', [WebhookController::class, 'handleWebhook'])
    ->middleware(VerifyWebhookSignature::class);
```

The middleware will reject requests with invalid or missing signatures with a `401 Unauthorized`.

---

Events
------

[](#events)

The following events are dispatched for webhooks:

- `EmailSent`
- `EmailDelivered`
- `EmailDeliveryDelayed`
- `EmailComplained`
- `EmailBounced`
- `EmailOpened`
- `EmailClicked`
- `EmailReceived`
- `EmailRejected`
- `EmailFailed`
- `EmailScanFailed`
- `EmailRenderingFailure`

Example usage:

```
use LetMeSendEmail\Laravel\Events\EmailSent;
use Illuminate\Support\Facades\Event;

Event::listen(EmailSent::class, function ($event) {
    logger()->info('Email sent:', $event->payload);
});
```

---

Exceptions
----------

[](#exceptions)

- `MissingApiKeyException` — thrown if the API key is not set.
- `WebhookSigningException` — thrown for invalid webhook signature generation.
- `WebhookVerificationException` — thrown for failed webhook verification.

---

Testing &amp; Fake Responses
----------------------------

[](#testing--fake-responses)

You can fake API responses in tests:

```
LetMeSendEmail::fake('emails/send');
```

Example Pest test:

```
it('resolves_letmesendemail_client', function () {
    config(['letmesendemail.key' => 'test']);
    expect(LetMeSendEmail::getFacadeRoot())->toBeInstanceOf(\LetMeSendEmail\Client::class);
});
```

---

Contributing
------------

[](#contributing)

Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.

---

License
-------

[](#license)

This package is licensed under the MIT License.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance88

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

5

Last Release

60d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.2PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73299554?v=4)[Apsonex Inc.](/maintainers/apsonex)[@apsonex](https://github.com/apsonex)

---

Top Contributors

[![gurindersingh](https://avatars.githubusercontent.com/u/6223752?v=4)](https://github.com/gurindersingh "gurindersingh (13 commits)")

---

Tags

phpapiclientlaravelsdkLetMeSendEmail

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/letmesendemail-letmesendemail-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/letmesendemail-letmesendemail-laravel/health.svg)](https://phpackages.com/packages/letmesendemail-letmesendemail-laravel)
```

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1212.2M8](/packages/resend-resend-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[gemini-api-php/laravel

Gemini API client for Laravel

8916.9k](/packages/gemini-api-php-laravel)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2116.2k](/packages/wayofdev-laravel-symfony-serializer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
