thiritin / meteric
Dynamic billing engine for hosting systems — subscriptions, proration, usage, charges and pluggable invoice/tax drivers. PostgreSQL.
v0.5.0
2026-06-25 14:56 UTC
Requires
- php: ^8.3
- brick/math: ^0.12
- brick/money: ^0.10
- ibericode/vat: ^2.1
- illuminate/contracts: ^12.0
- illuminate/database: ^12.0
- illuminate/support: ^12.0
- nesbot/carbon: ^3.0
- tpetry/laravel-postgresql-enhanced: ^3.7
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.18
- orchestra/testbench: ^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
Meteric
Dynamic billing for Laravel hosting systems. Subscriptions, proration, usage metering, configurable options, addons, orders, and invoicing on PostgreSQL, built so a charge is never billed twice and never lost when your accounting system is down.
Documentation
Full docs are at thiritin.github.io/meteric.
Start with the Introduction, then Installation and the Quickstart.
Requirements
PHP 8.3+, Laravel 12, PostgreSQL 13+.
Installation
composer require thiritin/meteric php artisan vendor:publish --tag=meteric-config php artisan migrate
A quick taste
use Meteric\Facades\Meteric; $sub = Meteric::subscribe() ->account($account) ->add($vpsPrice) ->create(); // Collect pending charges and issue an invoice through the bound driver. $invoice = Meteric::invoicePending($account);
See the docs for subscriptions, plan changes, usage billing, tax, and the rest.
Testing
composer test
License
MIT. See LICENSE.