承接 idoneo/humano-mailer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 category
  • Template: Email template for HTML content
  • MessageDelivery: 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 messages
  • GET /message/create - Create new message form
  • GET /message/{id} - View message details
  • POST /message/{id}/start - Start campaign
  • POST /message/{id}/pause - Pause campaign
  • POST /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 tools
  • yajra/laravel-datatables-oracle: DataTables integration
  • guzzlehttp/guzzle: HTTP client for API calls
  • tijsverkoyen/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 我们能提供哪些服务?
定制开发 / 二次开发

基于 idoneo/humano-mailer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 18
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2025-09-28