Skip to content

Thiritin/meteric

Repository files navigation

Meteric

Meteric

tests GitHub tag License issues - meteric

Advanced billing for Laravel. 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. Fits SaaS, IaaS, and any product with usage-based or recurring pricing.

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 16+.

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.

About

Advanced billing engine for Laravel: subscriptions, proration, usage metering, addons, credit notes, and pluggable invoice/tax drivers on PostgreSQL. Built for SaaS, IaaS, and usage-based products.

Topics

Resources

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages