PHPackages                             ntech-services/subscription-system - 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. ntech-services/subscription-system

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

ntech-services/subscription-system
==================================

A subscription management system for Laravel applications.

0.0.17(6mo ago)0401Apache-2.0PHPPHP ^8.1

Since Jun 15Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/loicgeek/subscription-system)[ Packagist](https://packagist.org/packages/ntech-services/subscription-system)[ RSS](/packages/ntech-services-subscription-system/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (11)Used By (1)

Ntech Services Subscription System
==================================

[](#ntech-services-subscription-system)

A powerful and flexible subscription management system for Laravel applications, designed to handle subscription plans, payments, and user management.

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Commands](#commands)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- Laravel 8.0 or higher
- Composer

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

[](#installation)

To install the `ntech-services/subscription-system` package, follow these steps:

1. **Install the package via Composer:**

    Run the following command in your terminal:

`composer require ntech-services/subscription-system`

2. **Register Service Provider**

After installing the package, you should register the service provider in the `bootstrap/providers.php` file. Open `bootstrap/providers.php` and add the following line to the array:

```
[
    App\Providers\AppServiceProvider::class,
    NtechServices\SubscriptionSystem\SubscriptionServiceProvider::class, // add this line to providers array
];

```

3. **Publish the package configuration:**

    Publish the configuration file to customize the package settings.

`php artisan vendor:publish --provider="NtechServices\SubscriptionSystem\SubscriptionSystemServiceProvider"`

4. **Run the migrations:**

    Migrate the subscription system tables to your database by executing:

`php artisan migrate:subscription-system`

5. **Configure your models:**

    Add the `HasSubscriptions` trait to your user or model class that will handle subscriptions:

```
 use NtechServices\SubscriptionSystem\Traits\HasSubscriptions;

 class User extends Authenticatable
 {
     use HasSubscriptions;
 }

```

6. **Set up your environment variables:**

    Update your `.env` file with necessary configurations for the subscription system (if applicable).

Configuration
-------------

[](#configuration)

After publishing the configuration file, you can find it at `Config/subscription.php`. Customize the settings according to your application's requirements.

Usage
-----

[](#usage)

### Subscribing to a Plan

[](#subscribing-to-a-plan)

To subscribe a user to a plan, you can use the `subscribeToPlan` method provided by the `HasSubscriptions` trait:

```
$user = User::find(1);
$planPrice = PlanPrice::find(1); // Retrieve the desired plan

$user->subscribeToPlan($planPrice, $couponCode = null);

```

### Managing Subscriptions

[](#managing-subscriptions)

You can manage subscriptions using the available methods in the `HasSubscriptions` trait:

- Check active subscriptions: `$user->activeSubscriptions()`
- Cancel subscription: `$subscription->cancelSubscription($softCancel = true)`
- Update subscription plan: `$subscription->updateSubscription($newPlanPrice)`

### Subscription History

[](#subscription-history)

Subscription status changes are automatically recorded in the subscription history for tracking purposes.

Commands
--------

[](#commands)

### Migrate Subscription System Tables

[](#migrate-subscription-system-tables)

To migrate the subscription system tables, you can run the following command:

`php artisan migrate:subscription-system`

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance65

Regular maintenance activity

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.9% 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 ~14 days

Total

10

Last Release

209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e875d2b3ddc5e9a37e30be67e5a6b2e5fdacf01fcf762b83018145730b0e20cb?d=identicon)[loicgeek](/maintainers/loicgeek)

---

Top Contributors

[![loicgeek](https://avatars.githubusercontent.com/u/33604660?v=4)](https://github.com/loicgeek "loicgeek (90 commits)")[![loic-cw](https://avatars.githubusercontent.com/u/185092732?v=4)](https://github.com/loic-cw "loic-cw (1 commits)")

### Embed Badge

![Health badge](/badges/ntech-services-subscription-system/health.svg)

```
[![Health](https://phpackages.com/badges/ntech-services-subscription-system/health.svg)](https://phpackages.com/packages/ntech-services-subscription-system)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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