PHPackages                             riverskies/laravel-newsletter-subscription - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. riverskies/laravel-newsletter-subscription

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

riverskies/laravel-newsletter-subscription
==========================================

Simple newsletter subscription for Laravel projects.

1.2.1(8y ago)161.3k7[1 PRs](https://github.com/riverskies/laravel-newsletter-subscription/pulls)MITPHP

Since Sep 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/riverskies/laravel-newsletter-subscription)[ Packagist](https://packagist.org/packages/riverskies/laravel-newsletter-subscription)[ RSS](/packages/riverskies-laravel-newsletter-subscription/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Laravel Newsletter Subscription
===============================

[](#laravel-newsletter-subscription)

A simple package to enable newsletter subscriptions within the context of a Laravel application.

Installation
------------

[](#installation)

```
$ composer require riverskies/laravel-newsletter-subscription
```

Laravel 5.4 or earlier
----------------------

[](#laravel-54-or-earlier)

Add the service provider to your `config/app.php` file:

```
'providers' => [
    // ...
    Riverskies\LaravelNewsletterSubscription\Providers\NewsletterSubscriptionServiceProvider::class,
];
```

Usage
-----

[](#usage)

Include a simple form anywhere within your pages.

```

    {{ csrf_field() }}

    Subscribe

```

You might also want to include notification display on the same page.

```
@if(session('flash'))
    {{ session('flash') }}
@endif
```

### Subscriptions

[](#subscriptions)

This package collects email addresses and stores them in the database. You can access these subscriptions by querying the `Riverskies\LaravelNewsletterSubscription\NewsletterSubscription` Eloquent model.

### Note

[](#note)

This package uses the `Mail` facade to deliver the emails and delivery is queued, so ensure your `QUEUE_DRIVER` in your environment config is set accordingly.

Publishing assets
-----------------

[](#publishing-assets)

You can override the database table name, the associated URLs, email template format and the session key by overriding the default configuration values.

```
$ php artisan vendor:publish --tag='newsletter-subscription-config'
```

You can design the confirmation email by overriding the default view.

```
$ php artisan vendor:publish --tag='newsletter-subscription-views'
```

You can localise/change the messages by overriding the default localisation values.

```
$ php artisan vendor:publish --tag='newsletter-subscription-translations'
```

Considerations
--------------

[](#considerations)

This package uses [`hashids/hashids`](https://github.com/ivanakimov/hashids.php) to help derive unsubscribe links from the `id` fields of the subscription records. Those hashes are not stored in the database but instead encoded/decoded at runtime. To generate unique codes, this package uses the `APP_KEY` from the environment settings. If that changes, previously generated unsubscribe links will no longer work.

Contributions
-------------

[](#contributions)

PRs are welcome as long as they are following `PSR-2` standards and include all the corresponding tests that the change requires (not to mention that those should not break any previous behaviour either).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~0 days

Total

4

Last Release

3170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c95f579c623c6c7fe0a5015831ab0bb9e81cf8793dad215ffca8f5bd017872e?d=identicon)[barnabaskecskes](/maintainers/barnabaskecskes)

---

Top Contributors

[![barnabaskecskes](https://avatars.githubusercontent.com/u/3535449?v=4)](https://github.com/barnabaskecskes "barnabaskecskes (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/riverskies-laravel-newsletter-subscription/health.svg)

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

###  Alternatives

[vinkla/hashids

A Hashids bridge for Laravel

2.1k13.3M73](/packages/vinkla-hashids)[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[elfsundae/laravel-hashid

A simple, elegant way to obfuscate your data by generating reversible, non-sequential, URL-safe identifiers.

415246.3k2](/packages/elfsundae-laravel-hashid)[deligoez/laravel-model-hashid

Generate, Save, and Route Stripe/Youtube-like Hash IDs for Laravel Eloquent Models

16498.0k](/packages/deligoez-laravel-model-hashid)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[torann/hashids

Laravel package for Hashids

54335.1k](/packages/torann-hashids)

PHPackages © 2026

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