Download the PHP package nandocdev/plinth-multitenant-billing without Composer

On this page you can find all versions of the php package nandocdev/plinth-multitenant-billing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package plinth-multitenant-billing

Plinth: Multi-Tenant Billing & Payment Orchestration

Latest Version on Packagist License: MIT

Plinth is a high-performance billing engine for Laravel SaaS applications. It provides a provider-agnostic abstraction layer that handles multi-tenant subscriptions, one-time payments, atomic usage metering, and financial integrity via an internal ledger.

๐Ÿš€ Core Capabilities


๐Ÿ“ฆ Installation

1. Register Service Provider

(Laravel auto-discovery usually handles this, but if not:) Add Plinth\MultiTenantBilling\BillingServiceProvider::class to your config/app.php.

2. Configuration & Migrations


๐Ÿ›  API Functionality

1. Dynamic Payment Resolution

Each tenant can have their own provider. You configure this in the tenant_payment_providers table.

2. Payment Processing

Use the PaymentProcessor to handle direct charges (B2C context).

3. Hosted Checkout (Facade)

For redirect-based flows (Checkout sessions).

4. Usage Metering & Quotas

Manage resource consumption atomically using Redis.

5. Entitlements (Feature Flags)

Check plan-based feature access with $O(1)$ complexity via Redis Sets.


โš“ Webhook Integration

Plinth uses unique endpoints per tenant and provider to ensure maximum security and isolation.

Routes Configuration

Endpoints follow this pattern: /api/{provider}/webhooks/{tenant_id}.

Example Webhook Setup:

The WebhookController handles:

  1. Signature Verification: Validates the payload cryptographically using the specific tenant's secret.
  2. Store-First Persistence: Saves the raw payload in webhook_calls.
  3. Async Processing: Dispatches ProcessWebhookJob for status normalization and ledger recording.

๐Ÿ“Š Domain Models Reference

Category Models
Billing Plan, Subscription, SubscriptionItem, Invoice, InvoiceLine, BillingAttempt
Payments Customer, Order, Transaction, PaymentMethod, Refund, Dispute
Core LedgerEntry, TenantPaymentProvider, WebhookCall, UsageSnapshot

๐Ÿงช Testing

The package includes a full suite of Pest tests.

For package development, Plinth utilizes orchestra/testbench to simulate the Laravel environment and provides a pre-configured TestCase with in-memory SQLite migrations.


๐Ÿ“œ License

The MIT License (MIT). Please see License File for more information.


Developed with โค๏ธ by Fernando Castillo (@nandocdev)


All versions of plinth-multitenant-billing with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^13.0
illuminate/http Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nandocdev/plinth-multitenant-billing contains the following files

Loading the files please wait ...