PHPackages                             uiaciel/newsletter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. uiaciel/newsletter

ActiveLibrary

uiaciel/newsletter
==================

Newsletter Module for SuryaCMS

v1.0.2(1mo ago)07MITPHPPHP ^8.0

Since Apr 9Pushed 1mo agoCompare

[ Source](https://github.com/uiaciel/newsletter)[ Packagist](https://packagist.org/packages/uiaciel/newsletter)[ RSS](/packages/uiaciel-newsletter/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Newsletter Package for SuryaCMS
===============================

[](#newsletter-package-for-suryacms)

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

🚀 Features
----------

[](#-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
--------------

[](#-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
-------

[](#-usage)

### 1. Displaying Subscription Form

[](#1-displaying-subscription-form)

Add the Livewire component to any Blade view:

```

```

### 2. Automated Notifications

[](#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

[](#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));
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

3

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93e7dd030ff5cf9b363a8748f92447ff340f2c74511c06c043ec12ee0f297def?d=identicon)[uiaciel](/maintainers/uiaciel)

---

Top Contributors

[![uiaciel](https://avatars.githubusercontent.com/u/3069141?v=4)](https://github.com/uiaciel "uiaciel (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uiaciel-newsletter/health.svg)

```
[![Health](https://phpackages.com/badges/uiaciel-newsletter/health.svg)](https://phpackages.com/packages/uiaciel-newsletter)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.6M217](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.1k2.2k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3310.1k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
