PHPackages                             sagitarius29/laravel-subscriptions - 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. sagitarius29/laravel-subscriptions

ActiveLibrary[Payment Processing](/categories/payments)

sagitarius29/laravel-subscriptions
==================================

A simple package for subscriptions

v7.0.1(6y ago)6463[4 issues](https://github.com/sagitarius29/laravel-subscriptions/issues)MITPHPPHP ^7.1

Since Oct 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sagitarius29/laravel-subscriptions)[ Packagist](https://packagist.org/packages/sagitarius29/laravel-subscriptions)[ Docs](https://github.com/sagitarius29/laravel-subscriptions)[ RSS](/packages/sagitarius29-laravel-subscriptions/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (4)Versions (9)Used By (0)

Laravel Subscriptions
=====================

[](#laravel-subscriptions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2e2befc3e5e6755982fc097aef1571c920707ee6d711e26dfc7c3b302dfa0233/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7361676974617269757332392f6c61726176656c2d737562736372697074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sagitarius29/laravel-subscriptions)[![StyleCI](https://camo.githubusercontent.com/54a1db39817d94790c83eb2b2947253cea1a5df121aac30bee2bbe4306e5fbd5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3231373634363934362f736869656c64)](https://github.styleci.io/repos/217646946)[![Build Status](https://camo.githubusercontent.com/8272e9e806412af2319824804917e645202d4fc1f4c2b7eb1153fb8f5d58f31f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7361676974617269757332392f6c61726176656c2d737562736372697074696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sagitarius29/laravel-subscriptions)[![Quality Score](https://camo.githubusercontent.com/c93a1e7abbe5a91679706dd5d1e4d0fcba5441a6da9af993345ad5398277b00c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7361676974617269757332392f6c61726176656c2d737562736372697074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sagitarius29/laravel-subscriptions)[![Total Downloads](https://camo.githubusercontent.com/1b965c3cbc0db3d23ed2f07492b61f64840d8728b5cafe7bc79ed3174411c4e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361676974617269757332392f6c61726176656c2d737562736372697074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sagitarius29/laravel-subscriptions)

A simple laravel package for Subscriptions.

All ideas are welcome, please send your issue in: [Send your issues in here](https://github.com/sagitarius29/laravel-subscriptions/issues/new)

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

[](#installation)

You can install the package via composer:

**This package work in laravel 5.8 or later because Carbon is updated to 2.0.**

```
composer require sagitarius29/laravel-subscriptions
```

#### Register Service Provider

[](#register-service-provider)

Add `Sagitarius29\LaravelSubscriptions\LaravelSubscriptionsServiceProvider::class` to your file `config/app.php`

```
'providers' => [
    /**
    * Some Providers
    */
    Sagitarius29\LaravelSubscriptions\LaravelSubscriptionsServiceProvider::class
]
```

#### Config file and migrations

[](#config-file-and-migrations)

Publish package config file and migrations with the following command:

```
php artisan vendor:publish --provider="Sagitarius29\LaravelSubscriptions\LaravelSubscriptionsServiceProvider"
```

Then run migrations:

```
php artisan migrate
```

Features Overview
-----------------

[](#features-overview)

- Create plans and his features or consumables. (consumables is in development)
- Manage your plans: get all plans, disable, delete, etc.
- Your user can subscribe to a plan.
- The user can renew, cancel, upgrade or downgrade his subscription.
- Group your plans now is very simple.
- A lot more

A few examples
--------------

[](#a-few-examples)

### Configure your User model for use subscriptions

[](#configure-your-user-model-for-use-subscriptions)

```
