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

ActiveLibrary

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 4d 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 64% 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

2960d 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

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[rias/statamic-redirect

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

PHPackages © 2026

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