PHPackages                             lukesnowden/laravel-mailjet - 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. [Framework](/categories/framework)
4. /
5. lukesnowden/laravel-mailjet

ActiveLibrary[Framework](/categories/framework)

lukesnowden/laravel-mailjet
===========================

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport

2.1.0(6y ago)08MITPHPPHP &gt;=7.1.3

Since Jun 29Pushed 6y agoCompare

[ Source](https://github.com/lukesnowden/laravel-mailjet)[ Packagist](https://packagist.org/packages/lukesnowden/laravel-mailjet)[ Docs](https://github.com/mailjet/laravel-mailjet)[ RSS](/packages/lukesnowden-laravel-mailjet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (10)Used By (0)

Laravel Mailjet
===============

[](#laravel-mailjet)

[![Build Status](https://camo.githubusercontent.com/aa45e58278987c5446f89caa8f7739a9003937febce1cdd35bd97f50ebd36b21/68747470733a2f2f7472617669732d63692e6f72672f6d61696c6a65742f6c61726176656c2d6d61696c6a65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mailjet/laravel-mailjet)[![Packagist](https://camo.githubusercontent.com/1dfbacded144fbeb7eaa3cc1e1c42c3d18a06cb9e95aa23c7aed7bc87381d362/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61696c6a65742f6c61726176656c2d6d61696c6a65742e737667)](https://packagist.org/packages/mailjet/laravel-mailjet)[![Packagist](https://camo.githubusercontent.com/b3d3936656ed02423bd9f636a15b1bcaba780e1234d3abcf15f185b4a2a8f6c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61696c6a65742f6c61726176656c2d6d61696c6a65742e737667)](https://packagist.org/packages/mailjet/laravel-mailjet)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/mailjet/laravel-mailjet/blob/master/LICENSE.md)[![Documentation](https://camo.githubusercontent.com/bfd57f9d8fe91e4995e5a9d69651210d8cc5f16a9f14646f2c72e03885510804/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d67682d2d70616765732d626c75652e737667)](https://mailjet.github.io/laravel-mailjet/)

Laravel package for handling Mailjet API v3 using this wrapper:

It also provides a mailjetTransport for [Laravel mail feature](https://laravel.com/docs/master/mail)

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

[](#installation)

First, include the package in your dependencies:

```
composer require mailjet/laravel-mailjet

```

Then, you need to add some informations in your configuration files. You can find your Mailjet API key/secret [here](https://app.mailjet.com/account/api_keys)

- In the providers array:

```
'providers' => [
    ...
    Mailjet\LaravelMailjet\MailjetServiceProvider::class,
    Mailjet\LaravelMailjet\MailjetMailServiceProvider::class,
    ...
]
```

- In the aliases array:

```
'aliases' => [
    ...
    'Mailjet' => Mailjet\LaravelMailjet\Facades\Mailjet::class,
    ...
]
```

- In the services.php file:

```
mailjet' => [
    'key' => env('MAILJET_APIKEY'),
    'secret' => env('MAILJET_APISECRET'),
]
```

- In your .env file:

```
MAILJET_APIKEY=YOUR_APIKEY
MAILJET_APISECRET=YOUR_APISECRET
```

Full configuration
------------------

[](#full-configuration)

```
'mailjet' => [
    'key' => env('MAILJET_APIKEY'),
    'secret' => env('MAILJET_APISECRET'),
    'transactional' => [
        'call' => true,
        'options' => [
            'url' => 'api.mailjet.com',
            'version' => 'v3.1',
            'call' => true,
            'secured' => true
        ]
    ],
    'common' => [
        'call' => true,
        'options' => [
            'url' => 'api.mailjet.com',
            'version' => 'v3',
            'call' => true,
            'secured' => true
        ]
    ]
]
```

You can pass settings to [MailjetClient](https://github.com/mailjet/mailjet-apiv3-php#new--version-120-of-the-php-wrapper-).

- `transactional`: settings to sendAPI client
- `common`: setting to MailjetClient accessible throught the Facade Mailjet

Mail driver configuration
-------------------------

[](#mail-driver-configuration)

In order to use Mailjet as your Mail driver, you need to update the mail driver in your `config/mail.php` or your `.env` file to `MAIL_DRIVER=mailjet`, and make sure you are using a valid and authorised from email address configured on your Mailjet account. The sending email addresses and domain can be managed [here](https://app.mailjet.com/account/sender)

For usage, please check the [Laravel mail documentation](https://laravel.com/docs/master/mail)

Usage
-----

[](#usage)

In order to usage this package, you first need to import Mailjet Facade in your code:

```
use Mailjet\LaravelMailjet\Facades\Mailjet;

```

Then, in your code you can use one of the methods available in the MailjetServices.

Low level API methods:

- `Mailjet::get($resource, $args, $options)`
- `Mailjet::post($resource, $args, $options)`
- `Mailjet::put($resource, $args, $options)`
- `Mailjet::delete($resource, $args, $options)`

High level API methods:

- `Mailjet::getAllLists($filters)`
- `Mailjet::createList($body)`
- `Mailjet::getListRecipients($filters)`
- `Mailjet::getSingleContact($id)`
- `Mailjet::createContact($body)`
- `Mailjet::createListRecipient($body)`
- `Mailjet::editListrecipient($id, $body)`

For more informations about the filters you can use in each methods, refer to the [Mailjet API documentation](https://dev.mailjet.com/email-api/v3/apikey/)

All method return `Mailjet\Response` or throw a `MailjetException` in case of API error.

You can also get the Mailjet API client with the method `getClient()` and make your own custom request to Mailjet API.

ToDo
----

[](#todo)

- Add additional unit tests to increase code coverage.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

2304d ago

Major Versions

1.1.0 → 2.0.02019-06-17

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

2.0.0PHP &gt;=7.1.3

### Community

Maintainers

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

---

Top Contributors

[![Nightbr](https://avatars.githubusercontent.com/u/4228646?v=4)](https://github.com/Nightbr "Nightbr (11 commits)")[![skalero01](https://avatars.githubusercontent.com/u/2976641?v=4)](https://github.com/skalero01 "skalero01 (5 commits)")[![mskochev](https://avatars.githubusercontent.com/u/23452885?v=4)](https://github.com/mskochev "mskochev (4 commits)")[![mitomitov](https://avatars.githubusercontent.com/u/30122299?v=4)](https://github.com/mitomitov "mitomitov (3 commits)")[![lukesnowden](https://avatars.githubusercontent.com/u/8149079?v=4)](https://github.com/lukesnowden "lukesnowden (2 commits)")[![arnaudbreton](https://avatars.githubusercontent.com/u/1361191?v=4)](https://github.com/arnaudbreton "arnaudbreton (1 commits)")

---

Tags

frameworklaraveltransportMailjetmailjet wrappermailjet API

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mailjet/laravel-mailjet

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport

1111.5M2](/packages/mailjet-laravel-mailjet)[thedoctor0/laravel-mailjet-driver

Laravel mail driver package for Mailjet and wrapper for its API

33237.9k1](/packages/thedoctor0-laravel-mailjet-driver)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

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