arhitov/laravel-billing

Laravel 项目的账单模块

0.3.4 2024-05-12 12:06 UTC

This package is auto-updated.

Last update: 2024-09-12 13:01:53 UTC


README

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

支持事务、开票、订阅、与 Omnipay 通道和获取器协同工作的 Laravel 项目账单模块。

可能性

  • 多余额
  • 操作历史
  • 保存的信用卡
  • 订阅
  • 使用 Omnipay 通道
  • Webhook 控制器
  • 使用 Omnireceipt 财务

赞助我的工作!

如果你认为这个软件包在某种程度上帮助了你,你可以赞助我!我是一个自由开发者,所以你的帮助对我非常有帮助。😊

部署

composer require arhitov/laravel-billing

准备

在 config/app.php 文件中的 “providers” 块中添加 ServiceProvider Arhitov\LaravelBilling\Providers\PackageServiceProvider。将 BillableInterface 接口和 BillableTrait 特性添加到支付模型中。

配置设置。

发布配置并按需进行更改。将创建一个名为 "config/billing.php" 的文件。

php artisan vendor:publish --tag=billing-config

迁移。

发布迁移并根据需要做出任何必要的更改。例如,指定要使用的数据库连接。默认情况下,使用默认连接。

注意!迁移应在配置设置之后进行。

php artisan vendor:publish --tag=billing-migrations

Masterminds

以下存储库启发了我

  • laravel/cashier-stripe 我对上述存储库的作者表示感激。

许可证

该脚本是开源软件,根据 MIT 许可证 许可。

作者

Alexander Arhitov clgsru@gmail.com

欢迎来到这里!🤘