PHP code example of antyrace / oauth2-server
1. Go to this page and download the library: Download antyrace/oauth2-server 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/ */
antyrace / oauth2-server example snippets
'\League\OAuth2\Server\Grant\PasswordGrant'
'\AntyRace\OAuth2\Server\Grant\PasswordGrant'
'\League\OAuth2\Server\Grant\RefreshTokenGrant'
'\AntyRace\OAuth2\Server\Grant\RefreshTokenGrant'
'token_type' => 'League\OAuth2\Server\TokenType\Bearer'
'token_type' => 'AntyRace\OAuth2\Server\TokenType\Bearer'