Download the PHP package bhhaskin/laravel-billing without Composer

On this page you can find all versions of the php package bhhaskin/laravel-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 laravel-billing

Laravel Billing

Stripe-based subscription and billing management for Laravel applications.

Features

Subscription Management

Financial Operations

Developer Experience

Installation

Publish Configuration

Publish and Run Migrations

Configuration

Add your Stripe credentials to .env:

Money Handling

All monetary values are stored and exchanged as integer minor units (cents for USD, pence for GBP, etc.) — never as floats or decimals. This eliminates precision bugs and aligns with Stripe's API conventions.

For display, divide by 100 or use Number::currency($plan->price / 100, 'USD').

If you are upgrading from < 0.4.0, the migrate command converts existing decimal data automatically. See the CHANGELOG for the full upgrade guide.

Usage

Add Billable Trait to User Model

Create Plans

Subscribe Users

Check Subscriptions

Plan Changes

Change subscription plans immediately or schedule for later:

Customer Credits

Manage customer credit balances for refunds, promotions, and adjustments:

Refunds

Create full or partial refunds for paid invoices:

Quota Tracking

Track usage against plan limits and automatically fire events when quotas are reached:

Quota Events

The package fires events when quotas reach warning thresholds (default: 80%, 90%) or are exceeded:

Event properties:

Configure warning thresholds in config/billing.php:

API Routes

Include the API routes in your routes/api.php:

Stripe Webhooks

Wire the webhook endpoint to your application's routes file. Exclude it from CSRF verification:

In your application's StripeWebhookController (if you need custom handling), extend the package controller and override only the handler methods you need:

Webhook Idempotency

Every event delivered to the webhook endpoint is recorded in billing_webhook_events keyed by Stripe's event.id. Duplicate deliveries (Stripe retries, multi-endpoint setups, manual replays) are returned 200 immediately without re-running handlers. Each handler runs inside a database transaction; failures leave processed_at null so a subsequent re-delivery will retry.

Configure retention in config/billing.php (default 90 days), and prune old records:

The package also auto-schedules this weekly when auto_register_scheduler is enabled.

Payment Method Expiry Warnings

The billing:check-expiring-payment-methods command iterates active card payment methods and dispatches a PaymentMethodExpiring event for any card within the configured warning window (default 60 days, set via billing.payment_method_expiry.warning_days).

Each card fires the event exactly once per (card, expiry-month) combination — debounced via metadata so daily scheduling does not flood your notifications.

Listen for the event in your application:

Daily Billing Processing

The package automatically schedules a daily billing command to process renewals, trial expirations, and grace periods. You can disable this in config and run it manually:

Testing

License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-billing with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/auth Version ^10.0 || ^11.0
illuminate/database Version ^10.0 || ^11.0
illuminate/support Version ^10.0 || ^11.0
illuminate/console Version ^10.0 || ^11.0
stripe/stripe-php 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 bhhaskin/laravel-billing contains the following files

Loading the files please wait ...