PHPackages                             netcore/module-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. netcore/module-subscription

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

netcore/module-subscription
===========================

v1.0.6(8y ago)0153PHP

Since Dec 12Pushed 8y ago4 watchersCompare

[ Source](https://github.com/netcore/module-subscription)[ Packagist](https://packagist.org/packages/netcore/module-subscription)[ RSS](/packages/netcore-module-subscription/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Description
-----------

[](#description)

This module allows you to manage subscription plans and let users to subscribe to plans.

Pre-installation
----------------

[](#pre-installation)

**Only use this module if you are using a fully custom payment method. If you use Laravel Cashier, there's support coming for that!**

This package is part of Netcore CMS ecosystem and is only functional in a project that has the following packages installed:

1.
2.
3.

### Installation

[](#installation)

- Require this package using composer

```
composer require netcore/module-subscription

```

- Publish configuration/migrations

```
php artisan module:publish-config Subscription
php artisan module:publish-migration Subscription
php artisan migrate

```

- Configure plans and billing periods in `config/netcore/module-subscription.php` file.
- Seed the configuration to database

```
php artisan module:seed Subscription

```

- Add `Modules\Subscription\Traits\Subscribable` trait to your `User` model

### Usage

[](#usage)

- Subscribe to a plan with price specification

```
$plan      = Modules\Subscription\Models\Plan::where('key', 'premium')->first();
$planPrice = $plan->prices()->inPeriod('monthly')->first();
$user      = App\User::first();
$user->subscribe($planPrice, true);
/*
 The boolean stands for whether the user has already paid for the subscription or not.
 If a boolean is not provided, it'll be automatically set to false.
*/

```

- Get user plan

```
$plan = $user->plan;

```

- Get user subscription

```
$subscription   = $user->subscription;
$expirationDate = $subscription->expires_at;
$userHasPaid    = $subscription->is_paid;

```

- Cancel subscription

```
$user->cancelSubscription();

```

- Renew subscription

```
$user->renewSubscription(true);
// The boolean stands for whether the user has already paid for the subscription or not

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 82.7% 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 ~16 days

Recently: every ~27 days

Total

8

Last Release

3006d ago

### Community

Maintainers

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

---

Top Contributors

[![gstvr](https://avatars.githubusercontent.com/u/13051632?v=4)](https://github.com/gstvr "gstvr (43 commits)")[![NViktors](https://avatars.githubusercontent.com/u/26169825?v=4)](https://github.com/NViktors "NViktors (8 commits)")[![danielsGrietins](https://avatars.githubusercontent.com/u/24427373?v=4)](https://github.com/danielsGrietins "danielsGrietins (1 commits)")

### Embed Badge

![Health badge](/badges/netcore-module-subscription/health.svg)

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

###  Alternatives

[typo3/cms-install

TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.

1812.3M458](/packages/typo3-cms-install)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.4M74](/packages/typo3-cms-redirects)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k4](/packages/pimcore-data-importer)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)[oat-sa/tao-core

TAO core extension

66140.1k109](/packages/oat-sa-tao-core)[rias/statamic-redirect

29322.9k](/packages/rias-statamic-redirect)

PHPackages © 2026

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