PHPackages                             mazi/mailtrap-driver - 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. mazi/mailtrap-driver

ActiveLibrary

mazi/mailtrap-driver
====================

A Mailtrap email driver for Laravel.

00PHP

Since Apr 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mitar-death/mailtrap-laravel-driver)[ Packagist](https://packagist.org/packages/mazi/mailtrap-driver)[ RSS](/packages/mazi-mailtrap-driver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\# Mailtrap Laravel Driver

This package provides a Mailtrap driver for Laravel, allowing you to send emails in your Laravel application via the Mailtrap service.

\## Installation

You can install the package via composer:

composer require mazi/mailtrap-driver

**Configuration**
-----------------

[](#configuration)

After installing the package, you need to add the service provider to the `providers` array in `config/app.ph`

*&lt;?php*

***'Mazi\\MailtrapDriver\\MailtrapServiceProvider'***,

*?&gt;*

Then, in your `.env` file, set the `MAIL_MAILER` or `MAIL_DRIVER` (depending on your Laravel version) to `mailtrap`:

MAIL\_MAILER\_=\_mailtrap

Also, add your Mailtrap API Token to your `.env` file:

MAILTRAP\_API\_TOKEN\_=\_your-mailtrap-api-token

*&lt;?php*

***Mail**::**to***(***''***)*-&gt;**send***(*new* ***TestMail***());

*?&gt;*

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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://www.gravatar.com/avatar/a7839607842024a961a67d577346f1df1890d858db8d5a04fc65bc2655141686?d=identicon)[mazi\_mitar](/maintainers/mazi_mitar)

---

Top Contributors

[![mitar-death](https://avatars.githubusercontent.com/u/129818793?v=4)](https://github.com/mitar-death "mitar-death (1 commits)")

### Embed Badge

![Health badge](/badges/mazi-mailtrap-driver/health.svg)

```
[![Health](https://phpackages.com/badges/mazi-mailtrap-driver/health.svg)](https://phpackages.com/packages/mazi-mailtrap-driver)
```

PHPackages © 2026

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