PHPackages                             mathieu-bour/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. mathieu-bour/laravel-mailjet

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

mathieu-bour/laravel-mailjet
============================

Mailjet Integration for Laravel and Lumen frameworks

1.0.1(5y ago)11.3kMITPHPPHP ^7.2

Since May 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mathieu-bour/laravel-mailjet)[ Packagist](https://packagist.org/packages/mathieu-bour/laravel-mailjet)[ Docs](https://github.com/mathieu-bour/laravel-mailjet)[ RSS](/packages/mathieu-bour-laravel-mailjet/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Mailjet integration for Laravel and Lumen
=========================================

[](#mailjet-integration-for-laravel-and-lumen)

[![GitHub license](https://camo.githubusercontent.com/a8c226e843053ac22b4b81e4a6328ceee9534130303e3125559b6ede8bff79ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a8c226e843053ac22b4b81e4a6328ceee9534130303e3125559b6ede8bff79ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)[![Packagist Version](https://camo.githubusercontent.com/e59217afe0abcf346e0d5e9b24b74d258d8fa2ff9c2042a3923214cfc0ebc931/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e59217afe0abcf346e0d5e9b24b74d258d8fa2ff9c2042a3923214cfc0ebc931/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)[![Packagist](https://camo.githubusercontent.com/8e33b2984ebdffc90e721aa1fe36dddbf830bd71ae7f64821ef47af48bb8c38e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8e33b2984ebdffc90e721aa1fe36dddbf830bd71ae7f64821ef47af48bb8c38e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)[![GitHub issues](https://camo.githubusercontent.com/3d5040589999c5f2aae40112c9da0847e99d1b14e9b408adee320b889af1e5b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3d5040589999c5f2aae40112c9da0847e99d1b14e9b408adee320b889af1e5b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)[![GitHub pull requests](https://camo.githubusercontent.com/9b3f1293f3e059442e060ff7c909e6b52ab4ddee1101a78fec1613cf6084ae94/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/9b3f1293f3e059442e060ff7c909e6b52ab4ddee1101a78fec1613cf6084ae94/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)[![Scrutinizer code quality](https://camo.githubusercontent.com/8def244b14e399d7a51f33601a02d11c13b4675ac6eadbbd86dfac481e219aec/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8def244b14e399d7a51f33601a02d11c13b4675ac6eadbbd86dfac481e219aec/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6d6174686965752d626f75722f6c61726176656c2d6d61696c6a65743f7374796c653d666c61742d737175617265)

Allow to use the [Mailjet Templating Language](https://www.mailjet.com/feature/templating-language/) in Laravel mailables.

**This package is not supported by Mailjet.**

This package follows the [Semantic Versioning specification](https://semver.org/).

Prerequisites
-------------

[](#prerequisites)

- PHP &gt;= 7.2
- Laravel/Lumen 6 or 7

### Compatibility matrix

[](#compatibility-matrix)

laravel-mailjetLaravel / Lumen^1.0.0^6.0 || ^7.0Installation / configuration
----------------------------

[](#installation--configuration)

Simply add the package to your dependencies.

```
composer require mathieu-bour/laravel-mailjet
```

### Laravel

[](#laravel)

The package support the [Package Discovery](https://laravel.com/docs/7.x/packages#package-discovery).

### Lumen

[](#lumen)

Add the service provider to your `bootstrap/app.php`.

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

[](#configuration)

In the `config/services.php`, add the following entry:

```
return [
    // ...
    'mailjet'   => [
        'key'     => 'your-mailjet-key',
        'secret'  => 'your-mailjet-secret',
        'call'    => true, // can be set to false to mock requests
        'options' => ['version' => 'v3.1'], // additional Mailjet options, see https://github.com/mailjet/mailjet-apiv3-php#options
    ],
    // ...
];
```

Usage
-----

[](#usage)

You can now use the class `Windy\Mailjet\MailjetTemplateMailable` as a base for your emails.

Example:

```
use Windy\Mailjet\MailjetTemplateMailable;

class PasswordForgottenMail extends MailjetTemplateMailable
{
    /** @var int The Mailjet Template ID. */
    protected $templateId = 1185614;
    public $firstName;
    public $resetLink;

    public function __construct(User $user)
    {
        // You can now use {{var:firstName}} and {{var:resetLink}} variables in your Mailjet templates
        $this->firstName = $user->firstname ?? $user->username ?? '';
        $this->resetLink = 'https://mysite.com/password-reset?token=' . $user->token;
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~58 days

Total

2

Last Release

2112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73c2dfce49dda5261f96316534da32fe654b5318a85049d85b651bdda2aeb167?d=identicon)[Mathieu Bour](/maintainers/Mathieu%20Bour)

---

Top Contributors

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

---

Tags

emaillaravellumenmailjetlaravelemaillumenMailjet

### Embed Badge

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

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

###  Alternatives

[princealikhan/laravel-mautic-api

Free and Open Source Marketing Automation API

415.9k](/packages/princealikhan-laravel-mautic-api)

PHPackages © 2026

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