An example project demonstrating a billing system built with Laravel and FilamentPHP. It includes subscription management, recurring payments, and integration with Stripe using Laravel Cashier. The system also features a FilamentPHP interface for managing plans and viewing billing details.
- PHP >= 8.2
- Composer >= 2.0
- Node.js >= 16.0
- MySQL >= 8.0 or SQLite >= 3.0
- Laravel >= 11.x
- Clone the repository
git clone [email protected]:Willy-Bueno/filament-billing-example.git
cd filament-billing-example
- Install PHP dependencies
composer install
- Install and compile frontend dependencies
npm install
npm run dev
- Configure environment variables
cp .env.example .env
php artisan key:generate
- Configure your database in
.env
:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=billing_system
DB_USERNAME=your_username
DB_PASSWORD=your_password
- Run migrations and seeders
php artisan migrate --seed
- Link storage for file uploads
php artisan storage:link
- Create a Filament user
php artisan make:filament-user
- Configure Stripe keys in
.env
STRIPE_KEY=your_stripe_key
STRIPE_SECRET=your_stripe_secret
- Configure the stripe prices in the
config/stripe.php
file
- Fork the repository
- Create your feature changes in your branch
- Commit your changes
- Push to the branch
- Open a Pull Request
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
This project is licensed under the MIT License - see the LICENSE.md file for details.
For support, please email [email protected] or create an issue in the GitHub repository.