PHPackages                             jdtsoftware/laravel-email-templates - 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. jdtsoftware/laravel-email-templates

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

jdtsoftware/laravel-email-templates
===================================

Laravel 5 database driven email templating

v0.3.2(9y ago)222.2k8[2 issues](https://github.com/jdtsoftware/laravel-email-templates/issues)PHP

Since Mar 23Pushed 8y ago7 watchersCompare

[ Source](https://github.com/jdtsoftware/laravel-email-templates)[ Packagist](https://packagist.org/packages/jdtsoftware/laravel-email-templates)[ RSS](/packages/jdtsoftware-laravel-email-templates/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (4)Versions (13)Used By (0)

[![StyleCI](https://camo.githubusercontent.com/3d8b4a3a17a46ca4e7c2fc7cfb46244efaf3253b4c881d769a6f53a2cb1126a3/68747470733a2f2f7374796c6563692e696f2f7265706f732f38353433363437312f736869656c64)](https://styleci.io/repos/85436471)

Laravel Email Templates
=======================

[](#laravel-email-templates)

Database driven email templates for &gt;= Laravel 5.4 and PHP 7.

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

[](#configuration)

First register the service provider in config/app.php:

```
'providers' => [
    # ...
    JDT\LaravelEmailTemplates\ServiceProvider::class,
],
```

Then, in the same file, add the facade to the aliases config:

```
'aliases' => [
    # ...
    'EmailTemplate' => JDT\LaravelEmailTemplates\Facades\EmailTemplates::class,
]
```

Next, run the migrations:

```
$ php artisan migrate

```

This will set up 2 tables; email\_template and email\_layout.

Usage
-----

[](#usage)

The package is built in such a way that it plays nicely with the existing Laravel Mailer functionality.

Given a template existing in the above table with the handle 'registration', email can be sent simply as below:

```
$mail = \EmailTemplate::fetch('registration', ['name' => 'Jon']);

\Mail::to('foo@bar.com', $mail);
```

You can of course pass the language to translate the chosen email, providing you have created an email for that handle/language combination.

```
$mail = \EmailTemplate::fetch('registration', ['name' => 'Jon'], 'es');

\Mail::to('foo@bar.com', $mail);
```

This package doesn't rely on a templating engine such as Blade or Twig to handle any of the email messages, but does provide it's own view class adhering to Laravel contracts.

This means that you can pass data to the email just as you would any other view, without having to worry about the choice of templating package you use elsewhere in your project.

```
$mail = \EmailTemplate::fetch('registration', ['first_name' => 'Jon']);

$mail->with('last_name', 'Braud');

$mail->with([
    'verify_url'=> 'https:/....',
    'signup_time' => \Carbon\Carbon::now()->toDateTimeString()
]);

\Mail::to('foo@bar.com', $mail);
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.1% 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 ~8 days

Total

7

Last Release

3337d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/276399?v=4)[Tom Martin](/maintainers/tjmartin69)[@tjmartin69](https://github.com/tjmartin69)

---

Top Contributors

[![jbraud](https://avatars.githubusercontent.com/u/64064?v=4)](https://github.com/jbraud "jbraud (27 commits)")[![mohrwurm](https://avatars.githubusercontent.com/u/1046897?v=4)](https://github.com/mohrwurm "mohrwurm (1 commits)")[![tjmartin69](https://avatars.githubusercontent.com/u/276399?v=4)](https://github.com/tjmartin69 "tjmartin69 (1 commits)")

---

Tags

emaillaravel-5-packagephptemplates

### Embed Badge

![Health badge](/badges/jdtsoftware-laravel-email-templates/health.svg)

```
[![Health](https://phpackages.com/badges/jdtsoftware-laravel-email-templates/health.svg)](https://phpackages.com/packages/jdtsoftware-laravel-email-templates)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.7k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/mail

The Illuminate Mail package.

5910.4M475](/packages/illuminate-mail)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[illuminate/notifications

The Illuminate Notifications package.

483.0M1.1k](/packages/illuminate-notifications)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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