PHPackages                             pranabkc/hulakhi-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. [Payment Processing](/categories/payments)
4. /
5. pranabkc/hulakhi-subscription

ActiveLibrary[Payment Processing](/categories/payments)

pranabkc/hulakhi-subscription
=============================

A Laravel package to handle subscriptions and notifications.

v1.0.0(1y ago)12MITPHPPHP &gt;=8.0

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PranabZz/hulakhi)[ Packagist](https://packagist.org/packages/pranabkc/hulakhi-subscription)[ RSS](/packages/pranabkc-hulakhi-subscription/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Hulakhi Subscription
====================

[](#hulakhi-subscription)

Hulakhi Subscription is a Laravel package designed to handle subscriptions and notifications. It allows you to easily manage subscribers, notify them of updates, and includes a built-in, customizable email template. This package ensures all operations are handled seamlessly without the need for writing raw SQL or managing background jobs manually.

---

Features
--------

[](#features)

- Manage a list of subscribers effortlessly.
- Store subscriber data in the `subscribers` table automatically.
- Send notifications to subscribers via email.
- Customizable starter email template using pure CSS.
- Scalable email sending for large subscriber counts.

---

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

[](#installation)

### Prerequisites

[](#prerequisites)

- PHP 8.0 or higher
- Laravel 8.0, 9.0, or 10.0
- MySQL database connection configured

### Install via Composer

[](#install-via-composer)

Run the following command to install the package:

```
composer require pranabkc/hulakhi-subscription
```

### Configuration

[](#configuration)

Service Provider
----------------

[](#service-provider)

This package uses auto-discovery to register the service provider. If needed, you can manually register it in config/app.php:

```
'providers' => [
    Hulakhi\Providers\HulakhiServiceProvider::class,
],
```

Facade (Optional) The Hulakhi facade is registered automatically. You can also add it manually to the aliases in config/app.php:

```
'aliases' => [
    'Hulakhi' => Hulakhi\Facades\Hulakhi::class,
],
```

### Publish Configurations

[](#publish-configurations)

To publish the configuration file, run:

```
php artisan vendor:publish --provider="Hulakhi\Providers\HulakhiServiceProvider"
```

This will create a configuration file at config/hulakhi.php.

### Usage

[](#usage)

1. Set Up a Subscription Form Create a form in your application for collecting subscriber email addresses:

```

    @csrf

    Subscribe

```

2. Add Route and Controller Logic Handle form submissions to store subscribers:

```
use Hulakhi\Facades\Hulakhi;
use Illuminate\Http\Request;

Route::post('/subscribe', function (Request $request) {
    $email = $request->input('email');
    Hulakhi::subscribe($email);
    return redirect()->back()->with('success', 'Thank you for subscribing!');
});
```

3. Send Notifications Use the notifyAll method in any controller to notify all subscribers:

```
use Hulakhi\Facades\Hulakhi;

Hulakhi::notifyAll(
    'New Blog Post Published!',
    'Check out our latest blog post on Laravel development.',
    'https://example.com/path-to-image.jpg',
    'https://example.com/blog/new-post'
);
```

Email Template The package includes a starter email template. You can publish and customize it:

```
php artisan vendor:publish --tag="hulakhi-views"
```

This will publish the email template to resources/views/vendor/hulakhi.

### Database Table

[](#database-table)

The package automatically creates a subscribers table during installation. If needed, you can publish and modify the migration:

```
php artisan vendor:publish --tag="hulakhi-migrations"
```

Then run:

```
php artisan migrate
```

### Testing

[](#testing)

To test the package, use:

```
php artisan tinker
```

Example:

```
Hulakhi::subscribe('test@example.com');
Hulakhi::notifySubscribers('Test Subject', 'Test Description', '', 'https://example.com');
```

### Contributing

[](#contributing)

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

### License

[](#license)

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

### Author

[](#author)

Pranab KC Email:

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

544d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72617824?v=4)[Pranab](/maintainers/PranabZz)[@PranabZz](https://github.com/PranabZz)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/pranabkc-hulakhi-subscription/health.svg)

```
[![Health](https://phpackages.com/badges/pranabkc-hulakhi-subscription/health.svg)](https://phpackages.com/packages/pranabkc-hulakhi-subscription)
```

###  Alternatives

[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3720.4k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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