Download the PHP package gaooooge/easyhuifu without Composer

On this page you can find all versions of the php package gaooooge/easyhuifu. 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 easyhuifu

# easyhuifu

easyhuifu 是一个面向 PHP 的汇付能力封装包,用于统一管理配置、SDK 初始化、请求发送、响应解析及异常处理。

功能概览

目录结构

安装

1. 直接安装(推荐)

2. 从 Git 仓库安装

在目标项目 composer.json 中增加:

然后执行:

3. 本地 Path 联调

初始化

服务入口

配置说明

必填配置

可选配置

支付

支付下单

也可以使用:

微信 APP 支付示例

支付宝 APP 拉起示例

说明:

返回结果示例

支付参数

延迟分账示例

说明:

支付查询

可用于查询的原始标识:

支付关单

打款

打款参数

退款

别名方法:

延迟分账确认

延迟分账确认查询

延迟分账确认退款

进件

个人进件 + 业务入驻(组合调用)

企业进件 + 业务入驻(组合调用)

说明:

业务开通

进件回显

联行号字典

常用方法

说明:

地区编码

适配器机制

支持通过第二个构造参数注入扩展服务:

可注入服务

异常处理

所有服务统一抛出:

建议在业务层统一捕获并转换为自身的异常类型或错误响应。

参考数据维护

scripts/export_reference_data.php 用于维护 data/ 目录下的参考数据文件,不属于运行时依赖。

导出联行号数据时需显式提供环境变量:

示例

请参考:

进件与入驻拆分说明

EntryService 现在提供两套调用方式:

说明:

仅进件示例(个人)

仅进件示例(企业)

分步入驻示例(先进件后入驻)

延迟分账交易确认说明(必读)

接口映射(easyhuifu -> 汇付官方 SDK):

当前状态:


All versions of easyhuifu with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
huifurepo/dg-php-sdk Version ^2.0
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 gaooooge/easyhuifu contains the following files

Loading the files please wait ...