hong / autograph
Sign agreements Online
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/hong/autograph
Requires
- php: >=5.5
- predis/predis: 2.0.x-dev
This package is not auto-updated.
Last update: 2025-10-23 23:54:00 UTC
README
接E签宝封装
composer require hong/autograph @dev
use Sign\Esign;
class Talk{
private $sign;
function __construct(){
    $config['config']=[
        'appId'=>'',//E签宝的appID 
        'secret'=>'',//E签宝的secret 
    ];
    $config['url']  = 'https://smlopenapi.esign.cn';//接口请求地址
    $config['back_url']  = '';//完成回调地址
    $config['redis_url']  = 'tcp://127.0.0.1:6379';//redis连接地址
    $this->init($config);
}
private function init($config){
   $this->sign = new Esign($config);
}
//功能开始....按照E签宝的接口交互时序图流程图调用接口
public function account($info){
    $accountResult = $this->sign->createAccounts($info);
    return $accountResult;
}
}