PHP code example of lake / larke-jwt-sm2

1. Go to this page and download the library: Download lake/larke-jwt-sm2 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/ */

    

lake / larke-jwt-sm2 example snippets


composer 

larkeadmin.jwt.signer.algorithm = 'GmSM2'
larkeadmin.jwt.signer.private_key = 'sm2/path/prikey.pem'
larkeadmin.jwt.signer.public_key = 'sm2/path/pubkey.pem'

larkeadmin.jwt.signer.algorithm = 'GmSM3'
larkeadmin.jwt.signer.secrect = base64_encode("123123")