Download the PHP package solution-forest/filament-unlayer without Composer
On this page you can find all versions of the php package solution-forest/filament-unlayer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solution-forest/filament-unlayer
More information about solution-forest/filament-unlayer
Files in solution-forest/filament-unlayer
Package filament-unlayer
Short Description This is my package filament-unlayer
License MIT
Homepage https://github.com/solutionforest/filament-unlayer
Informations about the package filament-unlayer
Filament Unlayer
Filament Unlayer is a custom field package designed for Filaletter, 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
- 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
| Filament Version | Filament Newsletter Version |
|---|---|
| v3.x | v0.x |
| v4.x | v2.x |
| v5.x | >= v2.0.7 |
Install via Composer:
Publish the config file (optional):
Publish the views (optional):
Usage
1. Prepare Your Database
First, ensure your table has a json column to store the Unlayer design and HTML. For example, in a migration:
2. Add the Unlayer Field to Your Filament Form
Add the Unlayer field to your resource or form:
This field will save both the HTML and the Unlayer design JSON into your content column.
3. Exporting HTML
If you want to store only the HTML in a separate field, you can mount the HTML state to another field:
Or, extract the HTML from the field data before saving:
Testing
Changelog
See CHANGELOG for recent updates.
Contributing
See CONTRIBUTING for details.
Security
See security policy for reporting vulnerabilities.
Credits
- kelseylee
- All Contributors
License
MIT. See License File for details.
All versions of filament-unlayer with dependencies
filament/forms Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.15.0
