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(7y ago)064PHP

Since May 17Pushed 7y 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 2d 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 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

2601d 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

[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)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[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)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)

PHPackages © 2026

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