PHP code example of ikoncept / ikoncept-oauth

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

    

ikoncept / ikoncept-oauth example snippets


'ikoncept' => [
    'client_id' => env('IKONCEPT_CLIENT_ID'),
    'client_secret' => env('IKONCEPT_CLIENT_SECRET'),
    'redirect' => env('IKONCEPT_CLIENT_REDIRECT'),
]

return [
    'client_id' => env('IKONCEPT_CLIENT_ID'),         // Your Ikoncept Client ID
    'client_secret' => env('IKONCEPT_CLIENT_SECRET'), // Your Ikoncept Client Secret
    'redirect' => env('IKONCEPT_CLIENT_REDIRECT'),
    'user_model' => env('IKONCEPT_USER_MODEL', \App\Models\User::class)
];
bash
php artisan vendor:publish --provider="Ikoncept\IkonceptOauth\IkonceptOauthServiceProvider" --tag=config