PHP code example of reflect-io / reflect-php
1. Go to this page and download the library: Download reflect-io/reflect-php 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/ */
reflect-io / reflect-php example snippets
use Reflect\Project\Token;
$accessKey = 'd232c1e5-6083-4aa7-9042-0547052cc5dd';
$secretKey = '74678a9b-685c-4c14-ac45-7312fe29de06';
$parameter = new Token\Parameter(
'user-id',
Token\Parameter\Op::EQUALS,
'1234'
);
$token = (new Token\Builder($accessKey))
->setAttribute('user-id', 1234)
->setAttribute('user-name', 'Billy Bob')
->addParameter($parameter)
->build($secretKey);