定制 wednesdev/mail 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

wednesdev/mail

最新稳定版本:v1.0.1

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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固