PHP code example of rogerlopez13 / php-jwk
1. Go to this page and download the library: Download rogerlopez13/php-jwk 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/ */
rogerlopez13 / php-jwk example snippets
$pk = "YOUR SHA-256 PRIVATE KEY";
$jwk = \Rogerlopez13\Jwk\JWK::fromPrivateKey($pk);
bash
composer