PHPackages                             pratiksh/payable - 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. pratiksh/payable

ActiveLibrary[Payment Processing](/categories/payments)

pratiksh/payable
================

Storing payment made simple.

v1.1.0(2y ago)4282MITPHPPHP ^7.4|^8.0

Since May 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pratiksh404/payable)[ Packagist](https://packagist.org/packages/pratiksh/payable)[ Docs](https://github.com/adminetic/Payable)[ RSS](/packages/pratiksh-payable/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Laravel Payable
===============

[](#laravel-payable)

[![Laravel Payable](https://github.com/pratiksh404/payable/raw/main/payable.png)](https://github.com/pratiksh404/payable/blob/main/payable.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/70b88534105369b06ad1a87a1c1dd482c8b31bff4ead66377a94ce36cbe74fac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726174696b73682f70617961626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pratiksh/payable)[![Stars](https://camo.githubusercontent.com/9e916ba79a980a0457a81f881b7bcf5e25dda3f1f427a54b85cd73e8565d54b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f70726174696b73683430342f70617961626c65)](https://github.com/pratiksh404/payable/stargazers) [![Downloads](https://camo.githubusercontent.com/0f744eec3bdd2dc255be01c3e06ba8be47bd76f820ce20b373cce9ae3938dbf6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726174696b73682f70617961626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pratiksh/payable) [![StyleCI](https://camo.githubusercontent.com/24e378056331717a78c2845e426add0bacd89d701099df13bef7af42a6945b5a/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3738393434333730332f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/789443703?branch=main) [![CodeFactor](https://camo.githubusercontent.com/52f78c9e9ea5c4a9750613cc13c79c06fbca9dd1487503f45b530002a72c676a/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f70726174696b73683430342f70617961626c652f6261646765)](https://www.codefactor.io/repository/github/pratiksh404/payable) [![License](https://camo.githubusercontent.com/220de737f60e260732f9b2445a7d92954bb3e32405f1e095bbf76e8eb78658af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70726174696b73683430342f70617961626c65)](//packagist.org/packages/pratiksh/payable)

Storing payment made simple.

For detailed documentation visit [Payable Documentation](https://pratikdai404.gitbook.io/laravel-payable/)

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

[](#installation)

You can install the package via composer:

```
composer require pratiksh/payable
```

Publish Migrations
------------------

[](#publish-migrations)

Packages Contains 3 table

- fiscals
- payments
- payment\_histories

```
php artisan vendor:publish --tag=payable-migrations
```

Publish Config file
-------------------

[](#publish-config-file)

Install payable

```
php artisan vendor:publish --tag=payable-config
```

Migrate Database

```
php artisan migrate
```

Setup
-----

[](#setup)

Payment is `polymorphic`, hence with the use of trait `HasPayable` can be used with any model.

```
use Pratiksh\Payable\Traits\HasPayable;

class Product extends Model
{
    use  HasPayable;
}

```

Usages
------

[](#usages)

```
$product = Product::first();
$product->pay(100)

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Pratik Shrestha](https://github.com/pratiksh)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.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 ~9 days

Total

2

Last Release

783d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/001849cfcd496d28474179bde8e510e82ea2ff8b32291d2ac8fc905a754512e0?d=identicon)[pratiksh404](/maintainers/pratiksh404)

---

Top Contributors

[![pratiksh404](https://avatars.githubusercontent.com/u/40533219?v=4)](https://github.com/pratiksh404 "pratiksh404 (23 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (7 commits)")

---

Tags

payablepratiksh404

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pratiksh-payable/health.svg)

```
[![Health](https://phpackages.com/badges/pratiksh-payable/health.svg)](https://phpackages.com/packages/pratiksh-payable)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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