PHPackages                             lyre/billing - 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. lyre/billing

ActiveLibrary[Payment Processing](/categories/payments)

lyre/billing
============

Simple Laravel Subscriptions

2.4.1(2w ago)0138MITPHPPHP ^8.3

Since Jul 25Pushed 2w agoCompare

[ Source](https://github.com/kigathi-chege/lyre-billing)[ Packagist](https://packagist.org/packages/lyre/billing)[ RSS](/packages/lyre-billing/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (26)Used By (0)

Lyre Billing
============

[](#lyre-billing)

`lyre/billing` adds subscription and billing domain primitives to Lyre applications.

What it provides
----------------

[](#what-it-provides)

- Models: `Subscription`, `SubscriptionPlan`, `PaymentMethod`, `Invoice`, `Transaction`, `Billable*`
- REST endpoints for subscriptions, plans, payment methods
- Unified payment orchestration via `Lyre\Billing\Services\PaymentManager`
- Gateway adapters under `src/Services/Gateways` for:
    - `mpesa` (real initiation + webhook handling)
    - `paypal` (real initiation + capture/return handling)
    - `stripe` (scaffold with status-safe placeholders)
    - `paystack` (scaffold with status-safe placeholders)
- Additional billing routes:
    - `GET /api/subscriptionplans/{plan}/subscribe`
    - `GET /api/subscriptions/{subscription}/approved`
    - `POST /api/billing/webhook`
- Filament resources via `LyreBillingFilamentPlugin`

Install
-------

[](#install)

```
composer require lyre/billing
```

Publish migrations:

```
php artisan vendor:publish --provider="Lyre\Billing\Providers\LyreBillingServiceProvider"
php artisan migrate
```

Seed default payment methods (optional):

```
php artisan db:seed --class="Lyre\\Billing\\Database\\Seeders\\PaymentMethodSeeder"
```

Filament
--------

[](#filament)

Register plugin in your panel provider:

```
use Lyre\Billing\Filament\Plugins\LyreBillingFilamentPlugin;

$panel->plugins([
    LyreBillingFilamentPlugin::make(),
]);
```

Notes
-----

[](#notes)

- Billing package follows core Lyre controller/repository/resource conventions.
- Keep webhook route behavior stable when integrating external payment providers.
- Checkout surfaces in consuming apps should call `PaymentManager` instead of using provider clients directly.
- Provider-specific payloads and callback interpretation belong in gateway adapters, not in app controllers.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance96

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Recently: every ~1 days

Total

25

Last Release

20d ago

Major Versions

0.3.0 → 1.0.02025-11-13

1.2.2 → 2.0.02026-06-01

PHP version history (2 changes)0.0.1PHP ^8.2

1.2.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38941486?v=4)[Kigathi](/maintainers/Kigathi)[@kigathi](https://github.com/kigathi)

---

Top Contributors

[![kigathi-chege](https://avatars.githubusercontent.com/u/30687709?v=4)](https://github.com/kigathi-chege "kigathi-chege (28 commits)")

### Embed Badge

![Health badge](/badges/lyre-billing/health.svg)

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

###  Alternatives

[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)[ph7software/ph7cms

pH7Builder. Social Dating Web App Site Builder

1.0k1.6k](/packages/ph7software-ph7cms)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tastyigniter/ti-ext-payregister

Allows you to accept credit card payments using PayPal, Stripe, Authorize.Net and/or Mollie.

1018.3k8](/packages/tastyigniter-ti-ext-payregister)

PHPackages © 2026

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