承接 uiaciel/newsletter 相关项目开发

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

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

uiaciel/newsletter

最新稳定版本:v1.0.2

Composer 安装命令:

composer require uiaciel/newsletter

包简介

Newsletter Module for SuryaCMS

README 文档

README

A robust newsletter management system for SuryaCMS (Laravel) that handles subscriptions, email verification, and automated notifications when new posts are published.

🚀 Features

  • Double Opt-in Subscription: Secure verification flow with unique tokens.
  • Automated Newsletters: Automatically triggers emails to verified subscribers when a post is published.
  • Queue Support: Uses Laravel Queues for background email processing to ensure high performance.
  • Topic Management: Categorize subscribers into different interest groups (e.g., News, Tutorials).
  • Livewire Integration: Ready-to-use SubscribeForm component.
  • Admin Dashboard: Manage subscribers and topics easily.

📦 Installation

  1. Require the package (if not already autoloaded):

    composer require uiaciel/newsletter
  2. Run Migrations:

    php artisan migrate
  3. Configure Queues (Recommended): Set your .env to use a persistent queue driver:

    QUEUE_CONNECTION=database

    Then run the worker:

    php artisan queue:work

🛠 Usage

1. Displaying Subscription Form

Add the Livewire component to any Blade view:

<livewire:newsletter.subscribe-form topic="News" />

2. Automated Notifications

The package listens for the PostPublished event from SuryaCMS. When a post status is set to 'Publish', it automatically:

  1. Fetches all verified subscribers.
  2. Dispatches SendNewsletterJob for each subscriber.
  3. Sends a NewPostNotification email.

3. Manual Email Testing

You can test the email template via Tinker:

use Uiaciel\Newsletter\Mail\NewPostNotification;
use Uiaciel\SuryaCms\Models\Post;

$post = Post::latest()->first();
Mail::to('user@example.com')->send(new NewPostNotification($post));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固