PHPackages                             goennounce/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. [Templating &amp; Views](/categories/templating)
4. /
5. goennounce/laravel-email-templates

ActiveLibrary[Templating &amp; Views](/categories/templating)

goennounce/laravel-email-templates
==================================

Laravel 5 database driven email templating

1.0.0(6y ago)064PHP

Since May 17Pushed 6y ago2 watchersCompare

[ Source](https://github.com/GoEnnounce/laravel-email-templates)[ Packagist](https://packagist.org/packages/goennounce/laravel-email-templates)[ RSS](/packages/goennounce-laravel-email-templates/feed)WikiDiscussions master Synced 2mo ago

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

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' => [
    # ...
    GoEnnounce\LaravelEmailTemplates\ServiceProvider::class,
],
```

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

```
'aliases' => [
    # ...
    'EmailTemplate' => GoEnnounce\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')->send($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')->send($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')->send($mail);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Unknown

Total

1

Last Release

2553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b1de47a36cf5ad6b9759b8c573498ea7f54690a20aa3a712dc3a170e8b9ef40?d=identicon)[goennounce](/maintainers/goennounce)

---

Top Contributors

[![agewriter](https://avatars.githubusercontent.com/u/61108703?v=4)](https://github.com/agewriter "agewriter (1 commits)")

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[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.

44643.1k1](/packages/pressbooks-pressbooks)[ryangjchandler/blade-capture-directive

Create inline partials in your Blade templates with ease.

8222.2M12](/packages/ryangjchandler-blade-capture-directive)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[jdtsoftware/laravel-email-templates

Laravel 5 database driven email templating

222.2k](/packages/jdtsoftware-laravel-email-templates)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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