arhitov/laravel-billing

Billing module for laravel projects

0.3.4 2024-05-12 12:06 UTC

This package is auto-updated.

Last update: 2024-11-12 13:16:59 UTC


README

PHP Laravel Latest Version on Packagist GitHub Actions Total Downloads Software License

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! 🤘