PHPackages                             actengage/laravel-message-gears - 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. actengage/laravel-message-gears

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

actengage/laravel-message-gears
===============================

MessageGears notification drivers for Laravel.

v4.0.0(2mo ago)02.7kPHPPHP ^8.3CI passing

Since Jun 10Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ActiveEngagement/laravel-message-gears)[ Packagist](https://packagist.org/packages/actengage/laravel-message-gears)[ RSS](/packages/actengage-laravel-message-gears/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (19)Versions (32)Used By (0)

MessageGears for Laravel
========================

[](#messagegears-for-laravel)

[![CI](https://github.com/ActiveEngagement/laravel-message-gears/actions/workflows/ci.yml/badge.svg)](https://github.com/ActiveEngagement/laravel-message-gears/actions/workflows/ci.yml)

A Laravel package for the MessageGears API. Provides fluent Cloud and Accelerator API clients, a notification channel, and a Symfony Mailer transport.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 11, 12, or 13

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

[](#installation)

```
composer require actengage/laravel-message-gears
```

The service provider is auto-discovered.

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

[](#configuration)

Add your MessageGears credentials to `config/services.php`:

```
// config/services.php

return [
    'messagegears' => [
        'cloud' => [
            'accountId' => env('MESSAGEGEARS_ACCOUNT_ID'),
            'apiKey'    => env('MESSAGEGEARS_API_KEY'),
        ],
        'accelerator' => [
            'accountId' => env('MESSAGEGEARS_ACCELERATOR_ACCOUNT_ID'),
            'apiKey'    => env('MESSAGEGEARS_ACCELERATOR_API_KEY'),
        ],
        'campaign_id' => env('MESSAGEGEARS_CAMPAIGN_ID'),
    ],
];
```

Usage
-----

[](#usage)

### Sending a Transactional Email Notification

[](#sending-a-transactional-email-notification)

```
use Actengage\MessageGears\Notifications\TransactionalEmail;

$notification = TransactionalEmail::make()
    ->campaignId('CAMPAIGN_ID')
    ->context([
        'SubjectLine' => 'Welcome!',
        'HtmlContent' => 'Hello',
        'TextContent' => 'Hello',
    ]);

$user->notify($notification);
```

### Cloud API

[](#cloud-api)

The Cloud facade authenticates automatically and prepends the API version to URIs.

```
use Actengage\MessageGears\Facades\Cloud;

// Authenticated POST request
$response = Cloud::authenticate()->post('campaign/transactional/CAMPAIGN_ID', [
    'json' => [
        'accountId' => 'ACCOUNT_ID',
        'recipient' => [
            'data' => ['EmailAddress' => 'user@example.com'],
            'format' => 'JSON',
        ],
    ],
]);
```

### Accelerator API

[](#accelerator-api)

```
use Actengage\MessageGears\Facades\Accelerator;

$response = Accelerator::post('endpoint', [
    'json' => ['key' => 'value'],
]);
```

### Mail Transport

[](#mail-transport)

You can use MessageGears as a Laravel mail transport. Add the mailer to `config/mail.php`:

```
// config/mail.php

'mailers' => [
    'messagegears' => [
        'transport' => 'messagegears',
        'campaign_id' => env('MESSAGEGEARS_CAMPAIGN_ID'),
    ],
],
```

Then send mail as usual:

```
Mail::mailer('messagegears')->to('user@example.com')->send(new WelcomeEmail());
```

### TransactionalEmail Options

[](#transactionalemail-options)

The `TransactionalEmail` notification supports a full set of fluent options:

```
TransactionalEmail::make()
    ->campaignId('CAMPAIGN_ID')
    ->campaignVersion('v2')
    ->context(['SubjectLine' => 'Hello'])
    ->category('marketing')
    ->correlationId('corr-123')
    ->latestSendTime('2030-01-01 12:00:00')
    ->notificationEmailAddress('alerts@example.com')
    ->fromAddress('noreply@example.com')
    ->fromName('My App')
    ->replyToAddress('support@example.com');
```

Testing
-------

[](#testing)

```
composer test           # Run Pest tests
composer lint           # Run Pint
composer analyse        # Run PHPStan
composer rector         # Run Rector (dry-run)
```

License
-------

[](#license)

MIT

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90.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 ~78 days

Recently: every ~248 days

Total

28

Last Release

86d ago

Major Versions

v0.17.5 → v1.0.02024-07-11

v1.0.0 → v4.0.02026-04-01

PHP version history (4 changes)v0.9.0PHP ^7.0

v0.13.1PHP ^8.0

v0.17.0PHP ^8.1

v4.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33735047?v=4)[actengage](/maintainers/actengage)[@actengage](https://github.com/actengage)

---

Top Contributors

[![actengage](https://avatars.githubusercontent.com/u/33735047?v=4)](https://github.com/actengage "actengage (29 commits)")[![mitchellsolomon](https://avatars.githubusercontent.com/u/39250034?v=4)](https://github.com/mitchellsolomon "mitchellsolomon (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/actengage-laravel-message-gears/health.svg)

```
[![Health](https://phpackages.com/badges/actengage-laravel-message-gears/health.svg)](https://phpackages.com/packages/actengage-laravel-message-gears)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[s-ichikawa/laravel-sendgrid-driver

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

4079.7M1](/packages/s-ichikawa-laravel-sendgrid-driver)

PHPackages © 2026

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