mydnic/kanpen-filament-plugin
最新稳定版本:v1.0.0
Composer 安装命令:
composer require mydnic/kanpen-filament-plugin
包简介
A Filament plugin to manage your Kanpen Campaigns and Subscribers
README 文档
README
A Filament plugin for Kanpen — the Laravel newsletter package. Manage your subscribers, build email campaigns with a drag-and-drop editor, and track opens and clicks, all from your Filament admin panel.
Requirements
- PHP 8.2+
- Laravel 11+
- Filament 5+
- mydnic/kanpen
Installation
Install the plugin via Composer:
composer require mydnic/kanpen-filament-plugin
Publish and run the migrations:
php artisan vendor:publish --tag="kanpen-filament-plugin-migrations"
php artisan migrate
Register the plugin in your Filament panel provider:
use Mydnic\KanpenFilamentPlugin\KanpenFilamentPlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugin(KanpenFilamentPlugin::make()); }
What's included
Subscribers
- List all subscribers with their email verification status
- View a subscriber's full campaign history — every campaign delivered to them with open and click stats
- Soft delete, restore, and force delete
Campaigns
- Create and edit campaigns with a drag-and-drop email builder (powered by Unlayer)
- Load a saved template as the starting point for a campaign
- Send a test email to any address before going live
- Send a campaign to all subscribers (dispatched to the queue)
- Schedule campaigns for a future date
- View per-campaign stats: total sent, unique opens, total clicks
- Status badges: Draft, Sending, Sent, Cancelled
Email Templates
- Build reusable email templates with the Unlayer drag-and-drop editor
- Templates are stored as both a design JSON (for re-editing) and compiled HTML (for sending)
- Load any template into a campaign with one click
Email builder
The campaign and template editors use Unlayer's free embeddable editor. Designs are saved as Unlayer JSON alongside the compiled HTML. The HTML is what Kanpen actually sends — so the editor is entirely optional and swappable in the future without touching the sending logic.
Kanpen passes the compiled HTML directly to Laravel's mailer. If the content is a partial HTML snippet rather than a full document, Kanpen automatically wraps it in your application's mail layout (the one configured via php artisan vendor:publish --tag=laravel-mail), including an unsubscribe link in the footer.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-13