PHP code example of marcoazn89 / oauth2-password-grant

1. Go to this page and download the library: Download marcoazn89/oauth2-password-grant 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/ */

    

marcoazn89 / oauth2-password-grant example snippets


'auth' => [
    'private-key' => 'file://' . __DIR__ .'/../oauth-key.pem',
    'public-key' => 'file://' . __DIR__ .'/../oauth-key.pub',
    'expiration' => 604800
],