Download the PHP package suifuda/suifuda-open-sdk without Composer

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

随付达开放平台 PHP SDK

对外对外 API 调用的 PHP SDK,封装请求签名、Authorization 头构造与 HTTP 调用。

环境要求

快速开始

1. 引入依赖

2. 创建客户端

3. 发起业务请求

4. 异步通知验签

验签通过后再解析 Body;Body 请使用 HTTP 原始字符串,勿重新序列化。

签名规则

参与签名字段:appKey、timestamp、signType、nonce、data(请求体 JSON 原文)。

  1. 排除 sign
  2. 排除空值
  3. 按参数名 ASCII 字典序排序
  4. 拼成 key=value&key=value
  5. RSA 使用 SHA256withRSA,SM 使用 SM2(默认 userId:1234567812345678)
  6. 签名结果做 Base64

data 仅参与签名,不放入 Authorization。

Authorization 示例:

环境地址

环境 方法 Base URL
测试 useTestEnv() https://open-api.test.suifuda.com
生产 useProdEnv() https://open-api.suifuda.com

目录结构


All versions of suifuda-open-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
ext-openssl Version *
ext-curl Version *
ext-gmp Version *
lpilp/guomi Version ^1.0
fgrosse/phpasn1 Version ^2.5
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 suifuda/suifuda-open-sdk contains the following files

Loading the files please wait ...