PHP code example of marshmallow / authenticator

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

    

marshmallow / authenticator example snippets


return [
    'instagram' => [
        'client_id' => env('AUTH_INSTAGRAM_CLIENT_ID', null),
        'client_secret' => env('AUTH_INSTAGRAM_CLIENT_SECRET', null),
        'redirect_uri' => env('AUTH_INSTAGRAM_REDIRECT_URI', null),
    ],
];

use Marshmallow\Authenticator\Facades\Authenticator;

Authenticator::instagramToken()->refresh()->getAccessToken();
bash
php artisan vendor:publish --provider="Marshmallow\Authenticator\AuthenticatorServiceProvider" --tag="authenticator-migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="Marshmallow\Authenticator\AuthenticatorServiceProvider" --tag="authenticator-config"
bash
php artisan auth:instagram