PHPackages                             maileroo/maileroo-laravel-transport - 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. maileroo/maileroo-laravel-transport

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

maileroo/maileroo-laravel-transport
===================================

This is a Laravel transport for the Maileroo email service, allowing you to send emails using the Maileroo API.

1.0.0(9mo ago)31.2k↑12.5%MITPHPPHP ^8.0

Since Aug 16Pushed 9mo agoCompare

[ Source](https://github.com/maileroo/maileroo-laravel-transport)[ Packagist](https://packagist.org/packages/maileroo/maileroo-laravel-transport)[ RSS](/packages/maileroo-maileroo-laravel-transport/feed)WikiDiscussions main Synced 1mo ago

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

Maileroo Laravel Transport
==========================

[](#maileroo-laravel-transport)

This is a Laravel transport for the Maileroo email service, allowing you to send emails using the [Maileroo API](https://maileroo.com/docs/).

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

[](#requirements)

- PHP 8.0 or higher
- cURL Extension (`ext-curl`)
- JSON Extension (`ext-json`)

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

[](#installation)

```
composer require maileroo/maileroo-laravel-transport
```

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

[](#configuration)

This package comes with a Laravel service provider that will automatically register the transport. All you've to do is update your `.env` file with the Maileroo API key and set the mail driver to `maileroo`.

```
MAIL_MAILER=maileroo
MAILEROO_API_KEY=your_maileroo_api_key
MAIL_FROM_ADDRESS="[YOUR_MAILEROO_FROM_ADDRESS]"
MAIL_FROM_NAME="[YOUR_MAILEROO_FROM_NAME]"
```

That is it! The transport will automatically use the `MAIL_FROM_ADDRESS` and `MAIL_FROM_NAME` settings from your `.env` file to set the `From` header in your emails. No extra configuration is needed.

Usage
-----

[](#usage)

```
Mail::send([], [], function ($m) {
    $m->to('test@example.com', 'Test User')
      ->subject('Hello from Laravel via Maileroo (Subject)')
      ->text('Hello from Laravel via Maileroo (Plain Text)')
      ->html('Hello from Laravel via Maileroo');
});
```

Facade
------

[](#facade)

For advanced usage, you can use the `Maileroo` facade to send basic, templated or even bulk emails.

```
use Maileroo\LaravelTransport\Facades\Maileroo;

// Create a client (or rely on the transport's internal one)

$client = Maileroo::client(env('MAILEROO_API_KEY'), (int) env('MAILEROO_TIMEOUT', 30));

// Build addresses

$from = Maileroo::emailAddress('no-reply@yourdomain.com', 'Your App');
$to   = Maileroo::emailAddress('user@example.com', 'User');

// Attachments

$att1 = Maileroo::attachmentFromFile(storage_path('app/invoice.pdf'));
$att2 = Maileroo::attachmentFromContent('report.csv', "id,name\n1,Demo\n", 'text/csv', false);

// Example: send via SDK (method names depend on the Maileroo PHP SDK)

$referenceId = $client->sendBasicEmail([
    'from'   => $from,
    'to'     => [$to],
    'subject'=> 'Welcome via SDK',
    'html'   => 'Hello SDK!',
    'plain'  => "Hello SDK!",
    'attachments' => [$att1, $att2],
    'tracking' => true,
    'tags' => ['source' => 'laravel'],
]);

logger()->info('Maileroo reference id: '.$referenceId);
```

Available helpers on the facade:

1. `Maileroo::client(string $apiKey, int $timeout = 30): MailerooClient`
2. `Maileroo::emailAddress(string $email, ?string $name = null): EmailAddress`
3. `Maileroo::attachmentFromFile(string $path, ?string $contentType = null, bool $inline = false): Attachment`
4. `Maileroo::attachmentFromContent(string $name, string $content, ?string $contentType = null, bool $inline = false): Attachment`
5. `Maileroo::attachmentFromStream(string $stream, ?string $name = null, ?string $contentType = null, bool $inline = false): Attachment`

To send templated, bulk or scheduled emails, refer to the [Maileroo PHP SDK](https://github.com/maileroo/maileroo-php-sdk) documentation.

Documentation
-------------

[](#documentation)

For detailed API documentation, including all available endpoints, parameters, and response formats, please refer to the [Maileroo API Documentation](https://maileroo.com/docs).

License
-------

[](#license)

This SDK is released under the MIT License.

Support
-------

[](#support)

Please visit our [support page](https://maileroo.com/contact-form) for any issues or questions regarding Maileroo. If you find any bugs or have feature requests, feel free to open an issue on our GitHub repository.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance58

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

275d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5e83b5adb09306a876a5664689cc3630dabf76bde1aa8a9f2dc3438c3fdc147?d=identicon)[areebm](/maintainers/areebm)

---

Top Contributors

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

---

Tags

laravelmailmaileroophptransport

### Embed Badge

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

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

###  Alternatives

[symfony/mailer

Helps sending emails

1.6k368.1M955](/packages/symfony-mailer)[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5974.6M3](/packages/fedeisas-laravel-mail-css-inliner)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[directorytree/imapengine

A fully-featured IMAP library -- without the PHP extension

531175.4k4](/packages/directorytree-imapengine)[coconutcraig/laravel-postmark

Laravel package for sending mail via the Postmark API

2152.9M1](/packages/coconutcraig-laravel-postmark)[illuminate/notifications

The Illuminate Notifications package.

483.0M967](/packages/illuminate-notifications)

PHPackages © 2026

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