PHPackages                             andychukse/laravel-pricing-plans - 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. andychukse/laravel-pricing-plans

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

andychukse/laravel-pricing-plans
================================

A package provide pricing plans for Laravel.

v0.8.0(10mo ago)112.7k4MITPHPPHP ^8.0

Since Jan 9Pushed 10mo agoCompare

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

READMEChangelog (5)Dependencies (10)Versions (22)Used By (0)

Laravel Pricing Plans
=====================

[](#laravel-pricing-plans)

[![Build Status](https://camo.githubusercontent.com/00d432d45d36dbada21c336a818083899ba3b6025d6fd80aa677d8e126c52d10/68747470733a2f2f7472617669732d63692e6f72672f6f616e686e6e2f6c61726176656c2d70726963696e672d706c616e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oanhnn/laravel-pricing-plans)[![Coverage Status](https://camo.githubusercontent.com/539ae8ccd2af52384c24f83a4e90eedc08a6566cea6e7a2711079fb7e3df9d42/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f616e686e6e2f6c61726176656c2d70726963696e672d706c616e732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/oanhnn/laravel-pricing-plans?branch=master)[![Latest Version](https://camo.githubusercontent.com/7d414e9663b1601ec69a20dfc1e509658e392d8899864b07224ba4955974ce21/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616e64796368756b73652f6c61726176656c2d70726963696e672d706c616e73)](https://github.com/andychukse/laravel-pricing-plans/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Easy provide pricing plans for Your Laravel 7|8|9|10|11|12 Application.

Main features
-------------

[](#main-features)

Easy provide pricing plans for Your Laravel Application.

- For Laravel 7.0+ use v0.4
- For Laravel 8.0|9.0+ use v0.5
- For Laravel 10.0+ use v0.6
- For Laravel 11.0+ use v0.7
- For Laravel 12.0+ use v0.8

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

[](#requirements)

- php &gt;=7.3 || ^8.0+
- Laravel 7.0+ || 8.0+ || 9.0+ || 10.0+ || 11.0+ || 12.0+

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

[](#installation)

### Composer

[](#composer)

Begin by pulling in the package through Composer.

```
$ composer require andychukse/laravel-pricing-plans
```

### Service Provider (for Laravel Version 5.4 and below )

[](#service-provider-for-laravel-version-54-and-below-)

Next, if using Laravel 5.5+, you are done.

*If using Laravel 5.4, you must include the service provider within your `config/app.php` file*.

```
// config/app.php

    'providers' => [
        // Other service providers...

        Laravel\PricingPlans\PricingPlansServiceProvider::class,
    ],
```

### Config file and Migrations

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

Publish package config file and migrations with the command:

```
$ php artisan vendor:publish --provider="Laravel\PricingPlans\PricingPlansServiceProvider"
```

Then run migrations:

```
$ php artisan migrate
```

### Contract and Traits

[](#contract-and-traits)

Add `Laravel\PricingPlans\Contacts\Subscriber` contract and `Laravel\PricingPlans\Models\Concerns\Subscribable` trait to your subscriber model (Eg. `User`).

See the following example:

```
