Skip to main content

Installation

Get Subscribd installed and configured in a few minutes.

Requirements

  • PHP 8.3 or higher
  • Laravel 12 or 13
  • A supported database (MySQL, PostgreSQL, or SQLite)

Install via Composer

Subscribd is distributed through a private Composer repository. Add the repository and require the package:
The service provider registers itself automatically via Laravel’s package discovery. Two facades are aliased for convenience: Subscribd and Entitlements.

Publish assets

Configuration

This creates config/subscribd.php. At minimum, set your default gateway and currency:

Migrations

This creates the following tables:

Livewire components and views

Published to resources/views/vendor/subscribd/.

Translation files

Published to lang/vendor/subscribd/. Ships with en, es, fr, de, and zh-CN.

Environment variables

Add your gateway credentials to .env. Only the gateway you intend to use is required:

Sync plans

After publishing the configuration and defining your plans, sync them to the database:
This seeds the subscribd_plans and subscribd_plan_items tables from your config/subscribd.php plans array.

Run the health check

Verify the installation and gateway connectivity:
The command reports your configured gateway, currency, registered billable types, and plan count.

Schedule recurring commands

Add the following to your routes/console.php (or app/Console/Kernel.php on Laravel 10) to enable dunning, trial expiry, and ARR snapshots:

Next steps