PHPackages                             ihabrouk/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. ihabrouk/email\_templates

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

ihabrouk/email\_templates
=========================

Email Templates Management Plugin for FilamentPHP

02PHP

Since Mar 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ihabrouk/email_templates)[ Packagist](https://packagist.org/packages/ihabrouk/email_templates)[ RSS](/packages/ihabrouk-email-templates/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Email Templates for FilamentPHP
===============================

[](#email-templates-for-filamentphp)

A FilamentPHP plugin for managing email templates in Laravel applications.

Introduction
------------

[](#introduction)

Email Templates provides an intuitive interface for creating, editing, and managing email templates directly within the FilamentPHP admin panel. This allows content managers and developers to easily customize email notifications without touching code.

Features
--------

[](#features)

- Powerful WYSIWYG editor for creating rich email templates
- Variable support for dynamic content
- Template previewing functionality
- Easy integration with Laravel Mail
- Filament-native interface

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 10+
- FilamentPHP 3.3+

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

[](#installation)

You can install the package via composer:

```
composer require ihabrouk/email_templates
```

After installation, publish the migrations:

```
php artisan vendor:publish --tag="email-templates-migrations"
php artisan migrate
```

You can optionally publish the config file:

```
php artisan vendor:publish --tag="email-templates-config"
```

Usage
-----

[](#usage)

### Accessing Email Templates

[](#accessing-email-templates)

Once installed, you'll see an "Email Templates" item in your Filament navigation panel.

### Creating a Template

[](#creating-a-template)

1. Navigate to Email Templates in the Filament admin panel
2. Click "New Template"
3. Fill in the template details:
    - Name: A descriptive name for your template
    - Subject: The email subject line
    - Body: The content of your email

### Using Variables

[](#using-variables)

You can use variables in your templates with double curly braces:

```
Hello {{ $user->name }},

Thank you for your order #{{ $order->id }}.

```

### Sending Emails with Templates

[](#sending-emails-with-templates)

```
use Ihabrouk\EmailTemplates\Services\EmailSender;

// Using the template name
EmailSender::send('welcome-email', [
    'user' => $user,
    'company' => $company
], 'user@example.com');

// Or using the template ID
EmailSender::sendById(1, [
    'user' => $user,
    'company' => $company
], 'user@example.com');
```

Customization
-------------

[](#customization)

### Custom Template Variables

[](#custom-template-variables)

You can define your own variables and their sample values by publishing the config file and updating the `variables` section.

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

[](#contributing)

Contributions are welcome and will be fully credited.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35994789?v=4)[Ismail El Habrouk](/maintainers/ihabrouk)[@ihabrouk](https://github.com/ihabrouk)

---

Top Contributors

[![ihabrouk](https://avatars.githubusercontent.com/u/35994789?v=4)](https://github.com/ihabrouk "ihabrouk (3 commits)")

### Embed Badge

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

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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