PHPackages                             digiton-ma/laravel-soulbscription - 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. [API Development](/categories/api)
4. /
5. digiton-ma/laravel-soulbscription

ActiveLibrary[API Development](/categories/api)

digiton-ma/laravel-soulbscription
=================================

A straightforward interface to handle subscriptions and features consumption.

v5.0.1(3mo ago)12MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4

Since Apr 20Pushed 3mo agoCompare

[ Source](https://github.com/digiton-ma/laravel-soulbscription)[ Packagist](https://packagist.org/packages/digiton-ma/laravel-soulbscription)[ Docs](https://github.com/digiton-ma/laravel-soulbscription)[ GitHub Sponsors](https://github.com/digiton-ma)[ RSS](/packages/digiton-ma-laravel-soulbscription/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel Soulbscription
======================

[](#laravel-soulbscription)

[![Latest Version on Packagist](https://camo.githubusercontent.com/667d69050d05303fd3718f3d31be6af633c6c30bac3c8ff8047409b90211f7da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64696769746f6e2d6d612f6c61726176656c2d736f756c62736372697074696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digiton-ma/laravel-soulbscription)[![run-tests](https://github.com/digiton-ma/laravel-soulbscription/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/digiton-ma/laravel-soulbscription/actions/workflows/run-tests.yml)[![](https://camo.githubusercontent.com/8afb58cf7ba009beb8ef5353c0731177ee20ddcc9a61673b7aac0780058b7281/68747470733a2f2f636f6465636f762e696f2f67682f64696769746f6e2d6d612f6c61726176656c2d736f756c62736372697074696f6e2f6272616e63682f646576656c6f702f67726170682f62616467652e7376673f746f6b656e3d394e5559593145323844)](https://codecov.io/gh/digiton-ma/laravel-soulbscription)[![Check & fix styling](https://github.com/digiton-ma/laravel-soulbscription/actions/workflows/php-cs-fixer.yml/badge.svg?branch=main)](https://github.com/digiton-ma/laravel-soulbscription/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/ad692f5dd909783d59ab42438511440efc812922631eeab168c3e4d2c2ce1163/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64696769746f6e2d6d612f6c61726176656c2d736f756c62736372697074696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digiton-ma/laravel-soulbscription)

About
-----

[](#about)

A straightforward interface to handle subscriptions and features consumption.

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

[](#installation)

You can install the package via composer:

```
composer require digiton-ma/laravel-soulbscription
```

The package migrations are loaded automatically, but you can still publish them with this command:

```
php artisan vendor:publish --tag="soulbscription-migrations"
php artisan migrate
```

Upgrades
--------

[](#upgrades)

If you already use this package and need to move to a newer version, don't forget to publish the upgrade migrations:

```
php artisan vendor:publish --tag="soulbscription-migrations-upgrades-1.x-2.x"
php artisan migrate
```

> Check out the available upgrade migrations by looking at the [upgrades folder](https://github.com/digiton-ma/laravel-soulbscription/tree/develop/database/migrations/upgrades).

Usage
-----

[](#usage)

To start using it, you just have to add the given trait to your `User` model (or any entity you want to have subscriptions):

```
