PHPackages                             bebo2xd/laravel-rest-mail-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. bebo2xd/laravel-rest-mail-transport

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

bebo2xd/laravel-rest-mail-transport
===================================

Laravel custom mail transport for REST API integration with Digital Ocean deployments

00PHP

Since Sep 8Pushed 9mo agoCompare

[ Source](https://github.com/bebo2xd/laravel-rest-mail-transport)[ Packagist](https://packagist.org/packages/bebo2xd/laravel-rest-mail-transport)[ RSS](/packages/bebo2xd-laravel-rest-mail-transport/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel REST Mail Transport
===========================

[](#laravel-rest-mail-transport)

A Laravel package that provides a custom mail transport for sending emails via REST API, specifically designed for Digital Ocean deployments.

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

[](#installation)

Install the package via Composer:

```
composer require bebo2xd/laravel-rest-mail-transport
```

The service provider will be automatically registered via Laravel's package auto-discovery.

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

[](#configuration)

1. Add the `rest-api` mailer configuration to your `config/mail.php`:

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

    'rest-api' => [
        'transport' => 'rest-api',
        'host' => env('MAIL_HOST'),
        'port' => env('MAIL_PORT', 587),
        'username' => env('MAIL_USERNAME'),
        'password' => env('MAIL_PASSWORD'),
        'encryption' => env('MAIL_ENCRYPTION'),
    ],
],
```

2. Update your `.env` file:

```
MAIL_MAILER=rest-api
MAIL_HOST='https://mailserver.example.com/smtp.php'
MAIL_PORT=587
MAIL_USERNAME='email@example.com'
MAIL_PASSWORD='PASSWORD'
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="${MAIL_USERNAME}"
MAIL_FROM_NAME="${APP_NAME}"
```

Usage
-----

[](#usage)

Once configured, Laravel will automatically use the REST API transport for sending emails. You can use Laravel's mail functionality as usual:

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

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

Features
--------

[](#features)

- Supports all standard email features (to, cc, bcc, attachments, etc.)
- Custom headers for authentication
- Automatic logging of sent emails
- Error handling and exceptions
- Compatible with Laravel 9, 10, and 11

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

[](#requirements)

- PHP ^8.1
- Laravel ^9.0|^10.0|^11.0
- Guzzle HTTP ^7.0

License
-------

[](#license)

MIT License

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance40

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44145987?v=4)[Abanoub Adel](/maintainers/bebo2xd)[@bebo2xd](https://github.com/bebo2xd)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bebo2xd-laravel-rest-mail-transport/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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