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 1mo ago

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

Maintenance35

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

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://www.gravatar.com/avatar/17dd7a575d3d8cc3707bf1a638b97705391721be219f1125796209c774c70821?d=identicon)[ihabrouk](/maintainers/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

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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