PHP code example of shaunpersad / api-foundation
1. Go to this page and download the library: Download shaunpersad/api-foundation 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/ */
shaunpersad / api-foundation example snippets
return array(
'authorization_code' => '\OAuth2\GrantType\AuthorizationCode',
'password' => '\OAuth2\GrantType\UserCredentials',
'client_credentials' => '\OAuth2\GrantType\ClientCredentials',
'refresh_token' => '\OAuth2\GrantType\RefreshToken',
'fb_access_token' => '\Shaunpersad\ApiFoundation\OAuth2\GrantType\FacebookAccessToken',
'gplus_access_token' => '\Shaunpersad\ApiFoundation\OAuth2\GrantType\GPlusAccessToken',
'gplus_server_code' => '\Shaunpersad\ApiFoundation\OAuth2\GrantType\GPlusServerCode',
);