1. Go to this page and download the library: Download qingze-lab/esignbao-sdk-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
qingze-lab / esignbao-sdk-php example snippets
use QingzeLab\ESignBao\Client;
use QingzeLab\ESignBao\Config\Configuration;
$config = new Configuration(
appId: 'your_app_id',
appSecret: 'your_app_secret',
apiBaseUrl: 'https://smlopenapi.esign.cn' // 沙箱环境
);
$client = new Client($config);