PHPackages                             siallez/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. siallez/laravel-mailjet

ActiveLibrary

siallez/laravel-mailjet
=======================

Mailjet wrapper for Laravel

5877[1 PRs](https://github.com/siallez/laravel-mailjet/pulls)PHP

Since Dec 25Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Mailjet for Laravel
===================

[](#mailjet-for-laravel)

This package integrates the [Mailjet API Client](https://github.com/mailjet/mailjet-apiv3-php) in Laravel. You can access the API through Laravel service container or sending mails in Laravel's way with the new driver.

Install
-------

[](#install)

> This package requires version 5.1 of Laravel framework. I can't ensure the compatibility with other versions.

In your `composer.json`, add this to the `require` section:

```
"siallez/laravel-mailjet" : "dev-master",
```

Run `composer update`.

In `config/app.php`, add this to the `providers` array:

```
Siallez\Mailjet\MailjetServiceProvider::class,
```

Setup
-----

[](#setup)

In order to start using the package you only need to add these environment variables in your `.env` file with your Mailjet keys:

```
MAILJET_APIKEY_PUBLIC=
MAILJET_APIKEY_PRIVATE=

```

If you want to use the driver you should also add this:

```
MAIL_DRIVER=mailjet

```

Usage
-----

[](#usage)

You can access the API with dependency injection or all other available methods to resolve the [Service Container](http://laravel.com/docs/5.1/container#resolving). If you want to learn how to use it you can go to the official [Mailjet repository](https://github.com/mailjet/mailjet-apiv3-php).

Example:

```
Route::get('/mailjet', function(\Mailjet\Client $mj) {
    $response = $mj->get(\Mailjet\Resources::$Contact);
    if ($response->success()) {
        $contact = $response->getData();
        return dd($contact);
    }

    return dd($response);
});
```

Using the driver is as easy as setting `mailjet` as the mail driver (look at Setup). After that, you can use the regular Laravel's Mail facade and all mails will be sent with mailjet. You can find all the information about that [here](http://laravel.com/docs/5.1/mail).

Example:

```
Route::get('/mailjet2', function() {
    $mail = Mail::raw('Text to e-mail', function ($message) {
        $message->from('from@email.com')->to('to@email.com')->subject('Testing mailjet');
    });

    return dd($mail);
});
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![siallez](https://avatars.githubusercontent.com/u/7949885?v=4)](https://github.com/siallez "siallez (13 commits)")

### Embed Badge

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

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

PHPackages © 2026

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