PHP code example of catpkt / user-provider

1. Go to this page and download the library: Download catpkt/user-provider 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/ */

    

catpkt / user-provider example snippets


$userProvider= new UserProvider( $api_uri, $api_key/*, $method='AES-256-CBC'*/ );

$response= $userProvider->getToken( $user->id );

if( 200===$response.status ){
	return $token= $response->json;
}