PHP code example of atwx / silverstripe-gate-client
1. Go to this page and download the library: Download atwx/silverstripe-gate-client 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/ */
atwx / silverstripe-gate-client example snippets
$token = JWT::encode(['iat' => time()], $privateKey, 'RS256');
$b64 = urlencode(base64_encode($token));
// GET /_silvergateclient/token/<$b64>
yaml
Atwx\SilverGateClient\Services\LoginService:
disable_sudo_mode: true