Download the PHP package ethanfly/businesspay-laravel without Composer

On this page you can find all versions of the php package ethanfly/businesspay-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package businesspay-laravel

Tencent 微企付 (BusinessPay) Laravel SDK

腾讯微企付(MSE / 商企付)官方 PHP SDK 的 Laravel 封装包。

环境要求

安装

发布配置:

配置

config/businesspay.php 支持多账户。密钥可为 PEM 字符串、绝对路径或 file:// 前缀路径。

使用

Facade

依赖注入

API 资源矩阵(25 项)

Facade 方法 资源 关键能力
payment() 支付 App/H5/MP/PC/QR/WeCom/WeCom注册下单、分账下单、查询、查费、关单、按银行附言查单号
refund() 退款 退款、查询、异常转可用
withdraw() 提现 提现、查询、余额查询
deposit() 充值 查询、列表
profitAllocation() 分账 发起、完成、查询、接收方开户/简易开户、账户查询、余额、支持分账列表
profitAllocationCorrect() 分账纠错 发起、查询
profitAllocationReturn() 分账回退 发起、查询
batchProfitAllocationCorrect() 批量分账纠错 发起、查询
depositAllocation() 充值分账 发起、完成、查询、余额、按平台单号查询
bill() 账单下载 资金/分账/接收方/交易/预付卡交易账单
bank() 银行 状态、支持银行
employee() 员工 创建、删除、申请列表
mseFundsAccountApplication() 资金账户开户 创建、链接、查询
mseFund() 资金余额 微企付资金账户余额
fileUpload() 文件上传 通用上传、充值账单上传
redirect() 跳转 跳转支付、充值跳转
productApplication() 产品申请 创建、链接、查询
prepaidCardRecharge() 预付卡充值 小程序充值、关闭、查询
prepaidCardRechargeTransfer() 预付卡充值转账 创建、查询
prepaidCardWithdrawTransfer() 预付卡提现转账 创建、查询
prepaidCardInfo() 预付卡信息 注册、查询
prepaidSupplement() 预付卡补充 创建、查询
prepaidTransfer() 预付卡转账 创建、查询
prepaidTradeAllocation() 预付卡交易分账 创建、查询
predepositAcct() 预存款账户 小程序充值、查询

每个方法接受数组(自动规范化为对应 SDK Param 模型)或SDK 模型实例。返回 SDK 响应模型。

Webhook 通知

验签用账户的 TBEP 公钥(SHA256withRSA)。多账户场景用 new NotifyHandler($account)->withPublicKey($pem)

商业化必须(应用层负责):用 event_id 幂等去重;校验 timestamp 新鲜度防重放;按微企付规范返回应答。

异常

SDK ApiException 被包装为 BusinessPayException

测试

回归基线:tests/ApiCoverageTest 以包内置 SDK 源码为权威,断言全部 25 个 API 类 1:1 被代理覆盖、参数类可从数组构造、入口完整。20 tests, 325 assertions 全绿

自动发布

.github/workflows/release.yml:推送 master/main 即触发——

  1. PHP 8.0–8.3 矩阵跑 PHPUnit
  2. PHP 8.3 跑 Pint(非阻断,style drift 不影响发布)
  3. 按 commit 前缀 bump 版本(feat→minor / BREAKING|feat!→major / 其他→patch),更新 composer.json version,打 vX.Y.Z tag,创建 GitHub Release

设计说明

License

MIT


All versions of businesspay-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/container Version ^7.0|^8.0|^9.0|^10.0|^11.0
tenpay/entpay Version ^3.25
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ethanfly/businesspay-laravel contains the following files

Loading the files please wait ...