PHPackages                             solution-forest/filament-unlayer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. solution-forest/filament-unlayer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

solution-forest/filament-unlayer
================================

This is my package filament-unlayer

2.0.7(2mo ago)3598MITPHPPHP ^8.1

Since Nov 1Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/solutionforest/filament-unlayer)[ Packagist](https://packagist.org/packages/solution-forest/filament-unlayer)[ Docs](https://github.com/solutionforest/filament-unlayer)[ RSS](/packages/solution-forest-filament-unlayer/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (14)Versions (9)Used By (0)

[![](https://github.com/solutionforest/.github/raw/main/docs/images/sf.png?raw=true)](https://solutionforest.com)

Filament Unlayer
================

[](#filament-unlayer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00cb0d4ab3954100aad64f63cf4fb242e3ac3f3dc3602ddc98c2781a39ba56b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6c7574696f6e2d666f726573742f66696c616d656e742d756e6c617965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/solution-forest/filament-unlayer)[![Total Downloads](https://camo.githubusercontent.com/6832293e2205124646db8fbf842914cc090fb356bafca596e45a9b98869aadeb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6c7574696f6e2d666f726573742f66696c616d656e742d756e6c617965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/solution-forest/filament-unlayer)

> **Filament Unlayer** is a custom field package designed for [Filaletter](https://filaletter.solutionforest.net), the Filament Newsletter plugin. It enables rich, drag-and-drop email template editing within your FilamentPHP admin panel, powered by the Unlayer editor.

With Filament Unlayer, you can:

- Build and edit email templates visually with Unlayer’s intuitive interface
- Store both the HTML and JSON design data for each template
- Reuse, duplicate, and manage templates for different campaigns or use cases
- Integrate seamlessly as a custom field in any FilamentPHP resource or form
- Export clean, production-ready HTML for sending with your preferred email service
- Customize the Unlayer editor’s appearance and options to fit your workflow

---

Features
--------

[](#features)

- **Drag-and-drop email builder**: Integrates Unlayer for visual email design.
- **Saves both HTML and JSON design data**: Store and reuse templates flexibly.
- **Easy integration**: Use as a custom field in your Filament forms.
- **Export HTML**: Easily extract the generated HTML for sending.

---

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

[](#installation)

Filament VersionFilament Newsletter Versionv3.xv0.xv4.xv2.xv5.x&gt;= v2.0.7Install via Composer:

```
composer require solution-forest/filament-unlayer
php artisan filament:assets
```

Publish the config file (optional):

```
php artisan vendor:publish --tag="filament-unlayer-config"
```

Publish the views (optional):

```
php artisan vendor:publish --tag="filament-unlayer-views"
```

---

Usage
-----

[](#usage)

### 1. Prepare Your Database

[](#1-prepare-your-database)

First, ensure your table has a `json` column to store the Unlayer design and HTML. For example, in a migration:

```
$table->json('content');
```

### 2. Add the Unlayer Field to Your Filament Form

[](#2-add-the-unlayer-field-to-your-filament-form)

Add the Unlayer field to your resource or form:

```
use SolutionForest\FilamentUnlayer\FilamentUnlayer;

FilamentUnlayer::make('content');
```

This field will save both the HTML and the Unlayer design JSON into your `content` column.

### 3. Exporting HTML

[](#3-exporting-html)

If you want to store only the HTML in a separate field, you can mount the HTML state to another field:

```
FilamentUnlayer::make('json-content')->mountHtmlStateTo('data.content');

Hidden::make('content');
```

Or, extract the HTML from the field data before saving:

```
protected function mutateFormDataBeforeSave(array $data): array
{
    $data['content'] = $data['json-content']['html'];
    return $data;
}
```

---

Testing
-------

[](#testing)

```
composer test
```

---

Changelog
---------

[](#changelog)

See [CHANGELOG](CHANGELOG.md) for recent updates.

---

Contributing
------------

[](#contributing)

See [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

---

Security
--------

[](#security)

See [security policy](../../security/policy) for reporting vulnerabilities.

---

Credits
-------

[](#credits)

- [kelseylee](https://github.com/solutionforest)
- [All Contributors](../../contributors)

---

License
-------

[](#license)

MIT. See [License File](LICENSE.md) for details.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance87

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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 ~90 days

Recently: every ~79 days

Total

7

Last Release

64d ago

Major Versions

0.1.3 → 2.0.32025-06-17

0.1.4 → 2.0.62025-07-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68211796?v=4)[Solution Forest](/maintainers/solutionforest)[@solutionforest](https://github.com/solutionforest)

---

Top Contributors

[![sfkelseylee](https://avatars.githubusercontent.com/u/138422247?v=4)](https://github.com/sfkelseylee "sfkelseylee (28 commits)")[![lam0819](https://avatars.githubusercontent.com/u/68211972?v=4)](https://github.com/lam0819 "lam0819 (4 commits)")[![solutionforestteam](https://avatars.githubusercontent.com/u/53035878?v=4)](https://github.com/solutionforestteam "solutionforestteam (2 commits)")

---

Tags

laravelSolution Forestfilament-unlayer

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/solution-forest-filament-unlayer/health.svg)

```
[![Health](https://phpackages.com/badges/solution-forest-filament-unlayer/health.svg)](https://phpackages.com/packages/solution-forest-filament-unlayer)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[awcodes/richer-editor

A collection of extensions and tools to enhance the Filament Rich Editor field.

3912.8k9](/packages/awcodes-richer-editor)[rawilk/filament-password-input

Enhanced password input component for filament.

52263.4k14](/packages/rawilk-filament-password-input)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[schmeits/filament-character-counter

This is a Filament character counter TextField and Textarea form field for Filament v4 and v5

34226.4k13](/packages/schmeits-filament-character-counter)[biostate/filament-menu-builder

An Elegant Menu Builder for FilamentPHP

6528.1k2](/packages/biostate-filament-menu-builder)

PHPackages © 2026

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