1. Go to this page and download the library: Download yakeing/php_jwsign 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/ */
yakeing / php_jwsign example snippets
$jwsign = new jwsign();
$jwsign->SetPrivate($accesskey);
$Pubkey = $jwsign->GetPubkey();
var_dump($Pubkey);
array(3) {
["pub"]=>string(451) "-----BEGIN PUBLIC KEY-----\nMIIBIjA....NjQIDAQA\n-----END PUBLIC KEY----"
["bits"]=>int(2048)
["kid"]=>string(43) "cjbdM-CeRfP...5BNYQuksIIgmk"
}