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

ActiveLibrary[Framework](/categories/framework)

thedoctor0/laravel-mailjet-driver
=================================

Laravel mail driver package for Mailjet and wrapper for its API

2.0.5(2mo ago)33261.1k↓14%61MITPHPCI passing

Since Mar 24Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/TheDoctor0/laravel-mailjet-driver)[ Packagist](https://packagist.org/packages/thedoctor0/laravel-mailjet-driver)[ Docs](https://github.com/TheDoctor0/laravel-mailjet-driver)[ Fund](https://www.paypal.me/thedoctor0)[ GitHub Sponsors](https://github.com/thedoctor0)[ RSS](/packages/thedoctor0-laravel-mailjet-driver/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (12)Versions (14)Used By (1)

Laravel Mailjet Driver
======================

[](#laravel-mailjet-driver)

[![Build Status](https://camo.githubusercontent.com/969016702ae793b0626b440b8bdedd37e39f634edc95683809513cfe90e628d0/68747470733a2f2f7472617669732d63692e6f72672f546865446f63746f72302f6c61726176656c2d6d61696c6a65742d6472697665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TheDoctor0/laravel-mailjet-driver)[![Packagist](https://camo.githubusercontent.com/5cfb6333d7852470987e102641fce025c78314250be2986c1836780844c7b759/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f546865446f63746f72302f6c61726176656c2d6d61696c6a65742d6472697665722e737667)](https://packagist.org/packages/TheDoctor0/laravel-mailjet-driver)[![Packagist](https://camo.githubusercontent.com/900633c9d44dbe31027b76fbb6ef02fe697f2ecc0d66bc38528a664cf2cd7456/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f546865446f63746f72302f6c61726176656c2d6d61696c6a65742d6472697665722e737667)](https://packagist.org/packages/TheDoctor0/laravel-mailjet-driver)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/TheDoctor0/laravel-mailjet-driver/blob/master/LICENSE.md)

Laravel mail driver package for [Mailjet](https://www.mailjet.com/). It also serves as a wrapper for [Mailjet API v3](https://github.com/mailjet/mailjet-apiv3-php).

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

[](#installation)

For Laravel 9.x and 10.x which also requires Symfony Mailer:

```
composer require thedoctor0/laravel-mailjet-driver symfony/http-client

```

In other cases:

```
composer require thedoctor0/laravel-mailjet-driver:1.0.4

```

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

[](#configuration)

You can find your Mailjet API key / secret [here](https://app.mailjet.com/account/api_keys).

Change default mail driver and add new variables to your **.env** file:

```
MAIL_DRIVER=mailjet

MAILJET_APIKEY=YOUR_APIKEY
MAILJET_APISECRET=YOUR_APISECRET
```

Add section to the **config/services.php** file:

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

Make sure that in **config/mail.php** as mail sender address you are using an authorised email address configured on your Mailjet account.

Your available Mailjet email addresses and domains can be managed [here](https://app.mailjet.com/account/sender).

For Laravel 7+ you also need to specify new available mail driver in **config/mail.php**:

```
'mailers' => [
    ...

    'mailjet' => [
        'transport' => 'mailjet',
    ],
],
```

### Optional configuration

[](#optional-configuration)

You can add full configuration for [MailjetClient](https://github.com/mailjet/mailjet-apiv3-php) to the **config/services.php** file.

- `transactional`: settings to sendAPI client
- `common`: setting to MailjetClient accessible through the Facade Mailjet
- `v4`: setting used for some DataProvider`s

```
'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
        ],
    ],
    'v4' => [
        'call' => true,
        'options' => [
            'url' => 'api.mailjet.com',
            'version' => 'v4',
            'call' => true,
            'secured' => true
        ]
    ],
],
```

API Wrapper usage
-----------------

[](#api-wrapper-usage)

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

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

```

Then you can use one of the methods available in the **MailjetServices** class.

#### Low level API methods:

[](#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:

[](#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)`

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

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

For more information please refer to the official [Mailjet API documentation](https://dev.mailjet.com/email/reference/).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 52.6% 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 ~223 days

Recently: every ~296 days

Total

11

Last Release

61d ago

Major Versions

1.0.4 → 2.0.02022-09-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16612504?v=4)[Dawid Janik](/maintainers/TheDoctor0)[@TheDoctor0](https://github.com/TheDoctor0)

---

Top Contributors

[![TheDoctor0](https://avatars.githubusercontent.com/u/16612504?v=4)](https://github.com/TheDoctor0 "TheDoctor0 (40 commits)")[![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)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![mitomitov](https://avatars.githubusercontent.com/u/30122299?v=4)](https://github.com/mitomitov "mitomitov (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (1 commits)")[![arnaudbreton](https://avatars.githubusercontent.com/u/1361191?v=4)](https://github.com/arnaudbreton "arnaudbreton (1 commits)")[![ccharz](https://avatars.githubusercontent.com/u/2725238?v=4)](https://github.com/ccharz "ccharz (1 commits)")

---

Tags

frameworklaravelwrappertransportdriverMailjetmailjet API

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/laravel

The skeleton application for the Laravel framework.

84.5k63.2M1.0k](/packages/laravel-laravel)[mailjet/laravel-mailjet

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport

1111.7M2](/packages/mailjet-laravel-mailjet)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[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.

3991.8k](/packages/codewithdennis-larament)[ercogx/laravel-filament-starter-kit

This is a Filament v5 Starter Kit for Laravel 13, designed to accelerate the development of Filament-powered applications.

461.7k](/packages/ercogx-laravel-filament-starter-kit)

PHPackages © 2026

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