PHP code example of hannesvdvreken / oauth

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

    

hannesvdvreken / oauth example snippets


$fb = OAuth::consumer('Facebook');
$fb = OAuth::consumer('Facebook', 'https://example.com/callback');

'OAuth' => 'hannesvdvreken\OAuth\facade\OAuth',

'providers' => array(
    ...
    'hannesvdvreken\OAuth\OAuthServiceProvider',
),

return array(

	/**
	 * One of 'StreamClient' or 'CurlClient'. Defaults to 'StreamClient' if not provided.
	 */
	'client' => 'StreamClient',

    'consumers' => array(
        'Facebook' => array(
            'client_id'     => '',
            'client_secret' => '',
            'scope' => array(),
        ),
    ),
);