Requirements
Before installing Eufaturo Billing, ensure your system meets these requirements:System Requirements
System Requirements
- PHP: 8.4 or higher
- Laravel: 12.0 or higher
- Database: MySQL 8.0+ (PostgreSQL support coming soon)
- Composer: Latest version
Required PHP Extensions
Required PHP Extensions
pdo_mysqlmbstringjsonbcmath(for precise money calculations)
Installation Steps
1. Install the Core Package
Install the core billing package via Composer:2. Publish Configuration & Migrations
Publish the package configuration and migrations:3. Run Migrations
Run the database migrations to create the billing tables:billing_ prefix:
billing_currenciesbilling_payment_gatewaysbilling_payment_methodsbilling_gateway_referencesbilling_productsbilling_product_plansbilling_featuresbilling_subscriptionsbilling_ordersbilling_transactions- And more…
All billing tables use the
billing_ prefix to avoid conflicts with your application tables.4. Configure Billable Entity
In yourAppServiceProvider, configure how the package resolves the billable entity (customer):
app/Providers/AppServiceProvider.php
Multi-Tenancy Example
Multi-Tenancy Example
For team/company-based billing:
Subdomain-Based Example
Subdomain-Based Example
For subdomain-based applications:
5. Make Your Model Billable
Add theBillable trait and implement BillableInterface on your model:
app/Models/User.php
Any Eloquent model can be billable - User, Company, Team, Organization, etc.
Install a Payment Gateway
Choose and install at least one payment gateway package:Stripe
Eupago
Configure Gateway
Use the interactive Artisan command to configure your gateway:- Prompt for API credentials (secret key, publishable key, etc.)
- Allow UI customization (colors, fonts, theme)
- Install default payment methods (card, SEPA, etc.)
- Store configuration in database
Optional: Install UI Package
For a pre-built checkout UI, install one of our official frontend packages:- Livewire + Alpine.js
- Inertia + Vue 3
- Custom UI
Install the Livewire checkout package:Publish the views and assets:Features:
- Real-time form validation
- Customizable Blade templates
- Alpine.js for interactivity
- Zero JavaScript build step required
Both official UI packages are production-ready, fully tested, and actively maintained by the Eufaturo team.
Verify Installation
Create a test to verify everything is working:Next Steps
Quick Start
Create your first subscription
Configuration
Configure currencies, products, and plans
Basic Flow Guide
Complete step-by-step implementation
API Reference
Explore the API documentation
Troubleshooting
Class 'Billing' not found
Class 'Billing' not found
Make sure you’ve run
composer dump-autoload and the package is properly installed.Migration errors
Migration errors
Ensure your database connection is configured correctly in
.env:Billable resolver not configured
Billable resolver not configured
Make sure you’ve configured the billable resolver in your
AppServiceProvider: