arhitov / laravel-billing
Billing module for laravel projects
Requires
- php: ^8.2
- arhitov/laravel-helpers: ^0.1
- arhitov/laravel-package-helpers: >0.2
- laravel/framework: ^10
- nesbot/carbon: ^2
- omnipay/common: ^3.3
- omnireceipt/common: ^1.4
- watson/validating: ^8.2
Requires (Dev)
- ext-readline: *
- arhitov/omnipay-yookassa: ^5.1.1
- guzzlehttp/psr7: ^2.6
- http-interop/http-factory-guzzle: ^1.2
- mockery/mockery: ^1.6
- omnipay/dummy: ^3
- omnireceipt/dummy: ^2.1
- orchestra/testbench: ^v8
- php-http/curl-client: ^2.3
- php-http/mock-client: ^1.6
- phpunit/phpunit: ^10
Suggests
- arhitov/omnipay-yookassa: YooKassa driver for Omnipay payment processing library
README
Billing module for Laravel projects with support for transactions, invoicing, subscriptions, working with omnipay gateways and acquiring.
Possibilities
- Multi-balance
- Operations history
- Saved credit cards
- Subscriptions
- Using omnipay gateway
- Webhook controller
- Using Omnireceipt Fiscal
Sponsor my work!
If you think this package helped you in any way, you can sponsor me! I am a free developer, so your help will be very helpful to me. 😊
Deployment
composer require arhitov/laravel-billing
Preparation
Append ServiceProvider Arhitov\LaravelBilling\Providers\PackageServiceProvider in the config/app.php file to the “providers” block. Add the BillableInterface interface and the BillableTrait trait to the payment model.
Configuration setup.
Publish the configuration and make changes as needed. Will create a file "config/billing.php".
php artisan vendor:publish --tag=billing-config
Migration.
Publish the migration and make any necessary changes if necessary. For example, specify the database connection to be used. By default, the default connection is used.
Attention! Migration should only be performed after the configuration has been configured.
php artisan vendor:publish --tag=billing-migrations
Masterminds
The following repositories inspired me:
- laravel/cashier-stripe I express my gratitude to the authors of the above repositories.
License
The script is open-sourced software licensed under the MIT license.
Authors
Alexander Arhitov clgsru@gmail.com
Welcome here! 🤘