iyin / cloud-sign
A i-yin cloud sign SDK.
dev-master
2019-09-26 03:37 UTC
Requires
- ext-fileinfo: *
- ext-openssl: *
- guzzlehttp/guzzle: ^6.3
- monolog/monolog: ^1.24
- pimple/pimple: ^3.2
- psr/simple-cache: ^1.0
- symfony/cache: ^3.3 || ^4.0
- symfony/http-foundation: ^2.7 || ^3.0 || ^4.0
- symfony/psr-http-message-bridge: ^0.3 || ^1.0
This package is auto-updated.
Last update: 2024-04-26 14:08:18 UTC
README
A iyin cloud sign SDK.
Installing
$ composer require iyin/cloud-sign:dev-master -vvv
Usage
use IYin\CloudSign\Application; $config = [ 'app_id' => 'xxxxxx', // AppID 'secret' => 'xxxxxx', // AppSecret 'sign_type' => 'MD5', // 默认为 MD5,支持HMAC-SHA256 和 MD5 'log' => [ 'default' => 'dev', // 默认使用的 channel,生产环境可以改为下面的 prod 'channels' => [ // 测试环境 'dev' => [ 'driver' => 'single', 'path' => '/tmp/cloud-sign.log', 'level' => 'debug', ], // 生产环境 'prod' => [ 'driver' => 'daily', 'path' => '/tmp/cloud-sign.log', 'level' => 'info', ], ], ], 'http' => [ 'max_retries' => 1, 'retry_delay' => 500, 'timeout' => 5, 'base_uri' => 'https://cloud-sign.i-yin.com.cn', ], ]; $app = new Application($config); $params = [...]; $result = $app->platform_sign->singleSign($params);
License
MIT