PHPackages                             sebastienheyd/boilerplate-email-editor - 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. sebastienheyd/boilerplate-email-editor

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

sebastienheyd/boilerplate-email-editor
======================================

E-mail visual editor for sebastienheyd/boilerplate

8.1.7(4y ago)34961MITPHPCI failing

Since Mar 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sebastienheyd/boilerplate-email-editor)[ Packagist](https://packagist.org/packages/sebastienheyd/boilerplate-email-editor)[ RSS](/packages/sebastienheyd-boilerplate-email-editor/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (7)Versions (25)Used By (0)

E-mail editor for [sebastienheyd/boilerplate](https://github.com/sebastienheyd/boilerplate)
===========================================================================================

[](#e-mail-editor-for-sebastienheydboilerplate)

[![Packagist](https://camo.githubusercontent.com/e53612e0ffb510b6c3a7da4d17aa74b33427f6914343569db974249323b2e701/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656261737469656e686579642f626f696c6572706c6174652d656d61696c2d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sebastienheyd/boilerplate-email-editor)[![Build Status](https://camo.githubusercontent.com/7629bbe46d4929ac66fb79dcba706fe72d09e1db354e3ec84de2749e31c22e66/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73656261737469656e686579642f626f696c6572706c6174652d656d61696c2d656469746f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sebastienheyd/boilerplate-email-editor/build-status/master)[![StyleCI](https://camo.githubusercontent.com/332fd98fefe84afcf8f56e09db94a56d2ebda2307ca703154f092bbb589a367a/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137303837353439362f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/170875496)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2da46263ca38a520a89bf0e8758998fd8c25997a14698b090c8d8c46dd0eeda2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73656261737469656e686579642f626f696c6572706c6174652d656d61696c2d656469746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sebastienheyd/boilerplate-email-editor/?branch=master)[![Laravel](https://camo.githubusercontent.com/5d8f20cdd6c018b0a8135ac13dc5019844d4159916b0b270b19ce382fb8a6d62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d362e78253230254532253836253932253230392e782d677265656e3f6c6f676f3d4c61726176656c267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/5d8f20cdd6c018b0a8135ac13dc5019844d4159916b0b270b19ce382fb8a6d62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d362e78253230254532253836253932253230392e782d677265656e3f6c6f676f3d4c61726176656c267374796c653d666c61742d737175617265)[![Nb downloads](https://camo.githubusercontent.com/f818c169d0c72ea153d9ef7385b0e2c437a522c90b6f68701a44c2506af62ef7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656261737469656e686579642f626f696c6572706c6174652d656d61696c2d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sebastienheyd/boilerplate-email-editor)[![MIT License](https://camo.githubusercontent.com/adb3fbb010a5a8a7aac7b5ec3c602ce365242391b8b6b2d01e4fd13869dba264/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73656261737469656e686579642f626f696c6572706c6174652e737667)](license.md)

This package for [`sebastienheyd/boilerplate`](https://github.com/sebastienheyd/boilerplate) allows developers to manage emails for their applications. It allows you to create layouts and then define editors who will only be able to edit texts without being able to modify the layouts.

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

[](#installation)

1. In order to install Laravel Boilerplate Email Editor run :

```
composer require sebastienheyd/boilerplate-email-editor

```

2. Then run :

```
php artisan migrate

```

You can go to the admin and start using the email management panel.

**Optional** : publish configuration file

```
php artisan vendor:publish --tag=email-editor-config

```

Modify the default HTML layout
------------------------------

[](#modify-the-default-html-layout)

To edit the default HTML layout, you can use the following command

```
php artisan vendor:publish --tag=email-editor-layout

```

You will find the layout in `/resources/views/vendor/boilerplate-email-editor/layout`

Generating a new email layout
-----------------------------

[](#generating-a-new-email-layout)

To generate a new layout, you can use the following artisan command :

```
php artisan email:layout {name}

```

This command will generate a new blade file in the `resources/views/email-layouts` folder.

To change the default folder, change the value of `layouts_path` in the `email-editor` configuration file.

However, you must publish the configuration file in order to do so. To do this, use the following command:

```
php artisan vendor:publish --tag=email-editor-config

```

You can also remove a layout by using the `--remove` option

```
php artisan email:layout --remove {name}

```

Defining editors
----------------

[](#defining-editors)

This package is provided with two permissions that can be used depending on the desired profile.

- Email development : to be reserved for developers, it allows to define the slug, the description and the layout.
- Email edition : for users who will be able to edit the content of emails.

Permissions and roles are manageable by default with `sebastienheyd/boilerplate`

Email variables
---------------

[](#email-variables)

In the editing of the content of an e-mail, you will find a "Insert a variable" button. This button allows you to insert a variable in the e-mail and make it uneditable.

However, you can also enter the variables by hand by framing them with \[ and \]. In this manner, you can also add variables to the subject line of the email.

Example : "Hello \[first\_name\]"

Sending an email
----------------

[](#sending-an-email)

```
use Sebastienheyd\BoilerplateEmailEditor\Models\Email;

// Setting data
$data = ['first_name' => 'John', 'last_name' => 'Doe'];

// Sending email by his slug
Email::findBySlug('my_slug')->send('email@tld.com', $data);

// Or by his id
Email::find(1)->send('email@tld.com', $data);
```

Tests / Coding standards
------------------------

[](#tests--coding-standards)

This package is delivered with a `Makefile` used to launch checks for the respect of coding standards and the unit tests

Just call `make` to see the list of commands.

Credits
-------

[](#credits)

- [Sébastien HEYD](https://github.com/sebastienheyd)
- [All Contributors](https://github.com/sebastienheyd/boilerplate/contributors)

License
-------

[](#license)

This package is free software distributed under the terms of the [MIT license](license.md).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

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

Every ~47 days

Recently: every ~1 days

Total

21

Last Release

1673d ago

Major Versions

5.8.0 → 6.0.02019-10-16

5.8.x-dev → 6.1.02019-11-27

6.1.0 → 7.0.02019-12-05

7.0.3 → 8.0.02019-12-28

7.0.x-dev → 8.1.02021-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/9734baf9cf5aaf3f2243aa8a57e23e59f95b70f0bb30c2628f9e88bc76dc3c1a?d=identicon)[sebastienheyd](/maintainers/sebastienheyd)

---

Top Contributors

[![sebastienheyd](https://avatars.githubusercontent.com/u/5470423?v=4)](https://github.com/sebastienheyd "sebastienheyd (52 commits)")

---

Tags

laravelmailemailboilerplateeditore-mail

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sebastienheyd-boilerplate-email-editor/health.svg)

```
[![Health](https://phpackages.com/badges/sebastienheyd-boilerplate-email-editor/health.svg)](https://phpackages.com/packages/sebastienheyd-boilerplate-email-editor)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

56770.5k](/packages/railsware-mailtrap-php)

PHPackages © 2026

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