PHPackages                             flysend/flysend-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. flysend/flysend-laravel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

flysend/flysend-laravel
=======================

FlySend email driver for Laravel.

v0.2.0(2mo ago)136MITPHPPHP ^8.2

Since Apr 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/weMail/flysend-laravel)[ Packagist](https://packagist.org/packages/flysend/flysend-laravel)[ RSS](/packages/flysend-flysend-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (12)Versions (3)Used By (0)

FlySend Laravel
===============

[](#flysend-laravel)

The official Laravel package for [FlySend](https://flysend.io) — send transactional emails through the FlySend API.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10, 11, or 12

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

[](#installation)

```
composer require flysend/flysend-laravel
```

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

[](#configuration)

Add your API key to `.env`:

```
FLYSEND_API_KEY=your-api-key
```

Add the FlySend mailer to `config/mail.php`:

```
'mailers' => [
    // ...

    'flysend' => [
        'transport' => 'flysend',
    ],
],
```

Set FlySend as your default mailer in `.env`:

```
MAIL_MAILER=flysend
```

### Optional: Custom API Endpoint

[](#optional-custom-api-endpoint)

If you're using a self-hosted FlySend instance:

```
FLYSEND_API_ENDPOINT=https://your-flysend-instance.com
```

### Publishing Config

[](#publishing-config)

```
php artisan vendor:publish --tag=flysend-config
```

Usage
-----

[](#usage)

### Option A: Laravel Mail (Mailables &amp; Notifications)

[](#option-a-laravel-mail-mailables--notifications)

Once configured as the default mailer, all existing Mailables and Notifications work automatically:

```
use Illuminate\Support\Facades\Mail;

// Simple email
Mail::raw('Hello world!', function ($message) {
    $message->from('hello@example.com');
    $message->to('user@example.com');
    $message->subject('Hello');
});

// Mailable
Mail::to('user@example.com')->send(new WelcomeMail());
```

#### Adding Tags

[](#adding-tags)

You can attach FlySend tags to any Mailable by adding the `X-FlySend-Tags` header:

```
class WelcomeMail extends Mailable
{
    public function build()
    {
        return $this->subject('Welcome!')
            ->html('Welcome aboard!')
            ->withSymfonyMessage(function ($message) {
                $message->getHeaders()->addTextHeader(
                    'X-FlySend-Tags',
                    json_encode([
                        ['name' => 'campaign', 'value' => 'welcome'],
                    ])
                );
            });
    }
}
```

### Option B: FlySend Facade (Direct API)

[](#option-b-flysend-facade-direct-api)

For full control over the FlySend API, use the facade directly:

```
use FlySend\Laravel\Facades\FlySend;

$response = FlySend::send([
    'from' => 'hello@example.com',
    'to' => 'user@example.com',
    'subject' => 'Welcome!',
    'html' => 'Hello world!',
    'text' => 'Hello world!',
    'reply_to' => 'support@example.com',
    'tags' => [
        ['name' => 'campaign', 'value' => 'welcome'],
        ['name' => 'user_id', 'value' => '12345'],
    ],
    'attachments' => [
        [
            'filename' => 'invoice.pdf',
            'content' => base64_encode($pdfContent),
            'mime_type' => 'application/pdf',
        ],
    ],
]);

// $response['data']['id'] contains the email ID
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance83

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~5 days

Total

2

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55963648efea4511889f497782980f9a8776a911dd500cba980e1840cb6c92d5?d=identicon)[tareq1988](/maintainers/tareq1988)

---

Top Contributors

[![tareq1988](https://avatars.githubusercontent.com/u/153669?v=4)](https://github.com/tareq1988 "tareq1988 (3 commits)")

---

Tags

laravelmailemailmailerflysend

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k14](/packages/tempest-framework)[illuminate/mail

The Illuminate Mail package.

5910.6M496](/packages/illuminate-mail)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)

PHPackages © 2026

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