PHPackages                             robrogers/larajet - 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. robrogers/larajet

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

robrogers/larajet
=================

Laravel Mail Transport for Mailjet

1.0.2(7y ago)75.2k↓100%2MITPHPPHP &gt;=5.6

Since Nov 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/robrogers3/larajet)[ Packagist](https://packagist.org/packages/robrogers/larajet)[ Docs](https://github.com/robrogers3/larajet)[ RSS](/packages/robrogers-larajet/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Larajet
=======

[](#larajet)

[![Package version](https://camo.githubusercontent.com/141c763520eebbaaf0092b09a21783ad24c7faeef25a22a75be5bdcab58023c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f62726f676572732f6c6172616a65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robrogers/larajet)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total downloads](https://camo.githubusercontent.com/087c518560e501401b7bba06923bbe767ecfc233c5b720b7e4dedc3e89452a8e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f62726f676572732f6c6172616a65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robrogers/larajet)

Larajet is a mail transport for Laravel. It is a MailJet integration package. Much like Mailgun, this allows for sending Mail via the mailjet api (based on Mailjet API v3.) It supports Mailables and Notifables.

Install
-------

[](#install)

Via Composer

```
$ composer require robrogers/larajet
```

Configure
---------

[](#configure)

You will need to update app.php in the config directory:

In Package Service Providers section add:

```
Larajet\MailjetServiceProvider::class

```

Also, add this line to the 'aliases' array

```
'MailJet' => Larajet\Facades\MailJet::class,

```

Then you need to update config/services.php. Add this under Third Party Services:

```
    'mailjet' => [
        'public_key' => env('MAILJET_PUBLIC_KEY'),
        'private_key' => env('MAILJET_PRIVATE_KEY'),
        'from' => env('MAIL_FROM'),
        'driver' => env('MAIL_DRIVER'),
        'guzzle' => [],
        'api_url' => 'https://api.mailjet.com/v3/send'
    ],
```

Lasty, you will need to update your .env file accordingly to set your MailJet Public and Private keys.

```
MAILJET_PUBLIC_KEY=YOUR_PUBLIC_KEY
MAILJET_PRIVATE_KEY=YOUR_PRIVATE_KEY

```

Usage
-----

[](#usage)

The best way is to create a Mailable. e.g.

```
php artisan make:mail TestMail
```

Then just mail it!

```
use App\Mail\TestMail;

Mail::to(fred@example.com)
        ->subject('Test Mail')
        ->send(new TestMail);
```

Learn about [Mailables](https://laravel.com/docs/5.3/mail) on laravel.com

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

There is only one test. It tests the mail was sent.

Basically the steps are:

- Call a console command, or hit a route that sends an email.
- There are no more steps.

A route might look like:

```
use App\Mail\TestMail;

Route::get('/sendmail', function() {
    Mail::to(\App\User::first()->email)
        ->send(new TestMail);
    return 'sent?';
});
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Rob Rogers](https://github.com/robrogers3)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% 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 ~278 days

Total

3

Last Release

2913d ago

PHP version history (2 changes)1.0PHP ~5.6|~7.0

1.0.2PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![robrogers3](https://avatars.githubusercontent.com/u/2775002?v=4)](https://github.com/robrogers3 "robrogers3 (23 commits)")[![harrygulliford](https://avatars.githubusercontent.com/u/5051286?v=4)](https://github.com/harrygulliford "harrygulliford (1 commits)")

---

Tags

driverlaravelmailjetmailjet-apitransportlaravelmailMailjetmail driver

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/robrogers-larajet/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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