PHPackages                             sanatorium/mailer - 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. sanatorium/mailer

ActivePlatform-extension[Mail &amp; Notifications](/categories/mail)

sanatorium/mailer
=================

Mailing extension for Cartalyst Platform

3.0.7(9y ago)00PHPPHP &gt;=5.4.0

Since Mar 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/rozklad/platform-mailer)[ Packagist](https://packagist.org/packages/sanatorium/mailer)[ RSS](/packages/sanatorium-mailer/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (14)Used By (0)

sanatorium/mailer
=================

[](#sanatoriummailer)

Mailing extension for Cartalyst Platform

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

[](#installation)

### Composer

[](#composer)

Add repository to your composer.json

```
"repositories": [
  {
    "type": "composer",
    "url": "http://repo.sanatorium.ninja"
  }
]

```

Download the package

```
composer require sanatorium/mailer

```

### Download

[](#download)

Download repository and copy it's contents to /extensions/sanatorium/mailer

Documentation
-------------

[](#documentation)

Mailer is built to dispatch transactional emails when Event is triggered.

### Getting started

[](#getting-started)

Let's imagine you want to send emails to customer and admin when order is placed.

#### Preparing template

[](#preparing-template)

After installation, open **Mailtransactions** menu and choose **+** icon to **Create new template**

The template for notification to admin would looks something like this:

```
event: order.placed
subject: New order was placed
template: Hello admin!New order was placed on your {{ config('platform.app.title') }} site
receivers: {{ config('platform.mail.from.address') }}

```

Let's assume our $order object contains customer's email in $order-&gt;customer\_email, therefore we create new template with notification for customer like this:

```
event: order.placed
subject: Your order on {{ config('platform.app.title') }}
template: Hello!Thanks for your order!Best regards,{{ config('platform.app.title') }} site
receivers: {{ $order->customer_email }}

```

And then we trigger the event and pass data anywhere in the application like this:

```
Event::fire('order.placed', ['order' => $order])

```

Changelog
---------

[](#changelog)

3.0.4 - 2016-09-15 - Platform 5 support, caching 1.2.3 - 2016-06-14 - Added common seed 1.1.0 - 2016-05-08 - Added simple documentation 1.0.0 - 2016-03-25 - Basic functionality

Support
-------

[](#support)

### Troubleshooting

[](#troubleshooting)

**Q: No hint path defined for \[sanatorium/mailer\]**A: This might be caused by barryvdh/laravel-debugbar. Set following collector to false to get rid of this error message:

```
'debugbar.collectors.mail' => false

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~16 days

Recently: every ~4 days

Total

13

Last Release

3557d ago

Major Versions

1.2.4 → 3.02016-08-27

### Community

Maintainers

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

---

Top Contributors

[![rozklad](https://avatars.githubusercontent.com/u/3017167?v=4)](https://github.com/rozklad "rozklad (21 commits)")[![matejpozdravuje](https://avatars.githubusercontent.com/u/7512758?v=4)](https://github.com/matejpozdravuje "matejpozdravuje (1 commits)")[![MattLuk112](https://avatars.githubusercontent.com/u/7512758?v=4)](https://github.com/MattLuk112 "MattLuk112 (1 commits)")

---

Tags

laravelplatformextensioncartalystmadeinsane

### Embed Badge

![Health badge](/badges/sanatorium-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/sanatorium-mailer/health.svg)](https://phpackages.com/packages/sanatorium-mailer)
```

PHPackages © 2026

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