wednesdev/mail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wednesdev/mail

Composer 安装命令:

composer require wednesdev/mail

包简介

Simplify and enhance your email sending capabilities in Laravel 11 projects with this highly extendable and efficient email package.

README 文档

README

⚠️ IMPORTANT: This package is currently under active development and is not yet ready for production use. Features may be incomplete or subject to change. ⚠️

A highly extendable and efficient email package for Laravel 11 projects.

Development Status

This package is in active development. While we're working hard to complete and stabilize all features, please be aware that:

  • Some functionalities may be incomplete or change significantly.
  • The API is not yet stable and may undergo revisions.
  • Documentation may be incomplete or outdated in places.
  • There might be unforeseen bugs or issues.

Description

This package aims to simplify and enhance email sending capabilities in Laravel 11 applications. It provides a flexible system for managing email templates, translations, and sending emails with ease.

Planned Features

  • Email template management with database storage
  • Multi-language support for email templates
  • Easy-to-use facade for sending emails
  • Integration with Laravel's queueing system for efficient email dispatch
  • Customizable email attachments
  • Comprehensive dashboard for detailed logs and statistics:
    • Visual representation of email sending patterns
    • Success and failure rates
    • Delivery time analytics
    • Recipient engagement metrics (opens, clicks, etc.)
  • Artisan commands for easy creation of email templates:
    • Stub-based generation of template files
    • Interactive CLI for template customization
  • Admin panel for email template management:
    • CRUD operations for email templates
    • Live preview of templates
    • Version control and rollback capabilities for templates
    • Access control and user permissions for template management

Installation

As this package is still under development, it's not recommended for production use. However, if you'd like to try it out or contribute, you can install it via composer:

composer require wednesdev/mail

Configuration

After installation, publish the package configuration file (note that this might change as development progresses):

php artisan vendor:publish --provider="Wednesdev\Mail\Providers\MailServiceProvider"

Usage

Please note that the usage examples below are subject to change as development progresses.

Setting up email templates

use Wednesdev\Mail\Models\EmailTemplate;

$template = EmailTemplate::create([
    'name' => 'welcome_email',
    'description' => 'Welcome email for new users',
]);

$template->translations()->create([
    'locale' => 'en',
    'subject' => 'Welcome to Our Platform, {name}!',
    'body' => '<h1>Welcome, {name}!</h1><p>We're excited to have you on board.</p>',
]);

Sending an email

use Wednesdev\Mail\Facades\Email;

Email::send($user, 'welcome_email', 'user@example.com', ['name' => 'John Doe'], 'en');

Testing

To run the package tests (which are also under development):

composer test

Contributing

We welcome contributions! As the package is still in development, there are many opportunities to help. Please feel free to submit issues, feature requests, or pull requests.

License

This package is open-sourced software licensed under the MIT license.

wednesdev/mail 适用场景与选型建议

wednesdev/mail 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 wednesdev/mail 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wednesdev/mail 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-18