idoneo/humano-mailer
Composer 安装命令:
composer require idoneo/humano-mailer
包简介
Email marketing and messaging system for Humano applications
README 文档
README
A comprehensive email marketing and messaging system for Laravel applications, designed specifically for the Humano ecosystem.
Features
- Email Campaigns: Create and manage email marketing campaigns
- Multiple Providers: Support for SMTP and generic email APIs (MailBaby, Mailgun, SendGrid, etc.)
- Message Templates: Integration with template system for rich HTML emails
- Contact Management: Target specific contact categories and statuses
- Tracking & Analytics: Open tracking, click tracking, and detailed statistics
- Team-based: Multi-tenant support with team isolation
- Rate Limiting: Configurable sending limits and delays between emails
- Unsubscribe Management: Automatic unsubscribe handling
- Campaign Controls: Start, pause, and monitor campaigns
- Test Sending: Send test emails before launching campaigns
Installation
Install the package via Composer:
composer require idoneo/humano-mailer
Publish and run the migrations:
php artisan vendor:publish --tag="humano-mailer-migrations"
php artisan migrate
Optionally, publish the config file:
php artisan vendor:publish --tag="humano-mailer-config"
Configuration
The package automatically registers the "Mailer" module in your application. Configure your email providers in the .env file:
SMTP Configuration (Default)
MAIL_MAILER=smtp MAIL_HOST=your-smtp-host MAIL_PORT=587 MAIL_USERNAME=your-username MAIL_PASSWORD=your-password MAIL_ENCRYPTION=tls
Email API Configuration (MailBaby, Mailgun, etc.)
For external email service providers, use these simplified variables:
# Generic API configuration - works with any email service MAIL_API_KEY=your-api-key-here MAIL_API_DOMAIN=your-domain.com # Optional, only if your provider needs it # Examples: # For MailBaby: MAIL_API_KEY=your-mailbaby-api-key # For Mailgun: MAIL_API_KEY=your-mailgun-secret-key and MAIL_API_DOMAIN=your-domain.mailgun.org # For SendGrid: MAIL_API_KEY=your-sendgrid-api-key
The package will automatically detect if you have an API key configured and enable API-based sending.
Usage
Creating Messages
Messages can be created through the web interface or programmatically:
use Idoneo\HumanoMailer\Models\Message; $message = Message::create([ 'name' => 'Welcome Campaign', 'type_id' => 1, 'template_id' => 1, 'text' => 'Welcome to our platform!', 'status_id' => 1, 'team_id' => auth()->user()->currentTeam->id, ]);
Starting Campaigns
Campaigns can be started through the web interface or API:
$message = Message::find(1); $message->update([ 'status_id' => 1, // Active 'started_at' => now(), ]);
Tracking
The package provides comprehensive tracking:
- Open Tracking: Tracks when emails are opened
- Click Tracking: Tracks link clicks within emails
- Delivery Status: Monitors delivery success/failure
- Unsubscribe Tracking: Handles unsubscribe requests
Models
Message
The main campaign model with relationships to:
MessageType: Campaign type (newsletter, promotional, etc.)Category: Target contact categoryTemplate: Email template for HTML contentMessageDelivery: Individual email deliveries
MessageDelivery
Individual email delivery records with:
- Delivery status tracking
- Provider-specific data
- Open/click timestamps
- Error handling
MessageType
Campaign types for categorizing messages.
Routes
The package registers the following routes:
GET /message/list- List all messagesGET /message/create- Create new message formGET /message/{id}- View message detailsPOST /message/{id}/start- Start campaignPOST /message/{id}/pause- Pause campaignPOST /message/{id}/test- Send test email
Team Integration
The package is designed for multi-tenant applications:
- All models are scoped to teams automatically
- Email configuration can be team-specific
- Statistics and deliveries are isolated by team
Dependencies
spatie/laravel-package-tools: Package development toolsyajra/laravel-datatables-oracle: DataTables integrationguzzlehttp/guzzle: HTTP client for API callstijsverkoyen/css-to-inline-styles: Email CSS processing
License
This package is licensed under the GNU AGPLv3.
Support
For support and documentation, visit the Humano documentation or contact support@idoneo.es.
idoneo/humano-mailer 适用场景与选型建议
idoneo/humano-mailer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mailer」 「newsletter」 「email」 「messaging」 「laravel」 「campaigns」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 idoneo/humano-mailer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 idoneo/humano-mailer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 idoneo/humano-mailer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Creates new sare mail transport for laravel applications
Manage newsletters in Laravel
Extensible library for building notifications and sending them via different delivery channels.
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
Sendrill DB
The Newsletter Module provides the newsletter features to manage newsletters and mailing lists.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0
- 更新时间: 2025-09-28