PHP code example of bursteri / socialstream

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

    

bursteri / socialstream example snippets


use JoelButcher\Socialstream\Providers;

'providers' => [
    Providers::google(),
    Providers::github(),
],

'github' => [
    'client_id' => env('GITHUB_CLIENT_ID'),
    'client_secret' => env('GITHUB_CLIENT_SECRET'),
    'redirect' => '/oauth/github/callback',
],

use JoelButcher\Socialstream\Features;

'features' => [
    Features::createAccountOnFirstLogin(),
    Features::generateMissingEmails(),
    Features::globalLogin(),
    Features::authExistingUnlinkedUsers(),
    Features::rememberSession(),
    Features::providerAvatars(),
    Features::refreshOAuthTokens(),
],
bash
php artisan socialstream:install