PHP code example of taoran / sign-contract

1. Go to this page and download the library: Download taoran/sign-contract 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/ */

    

taoran / sign-contract example snippets


$sc = new \Taoran\SignContract\SignContract([
    '_serverHost' => $_serverHost,
    '_developerId' => $_developerId,
    '_pem' => $_pem,    //私钥
]);

$path = '/user/getPersonalCredential/';

$param = [
    'account' => '130xxxxxxxx'
];

//调用
$result = $sc->sendPostApi($path, $param);

var_dump($result);