PHP code example of katsana / katsana-sdk-laravel

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

    

katsana / katsana-sdk-laravel example snippets


'providers' => [

    // ...

    Katsana\ServiceProvider::class,

],

'aliases' => [

    // ...

    'Katsana' => Katsana\Katsana::class,

],



return [

    // ...

    'katsana' => [
        'client_id' => env('KATSANA_CLIENT_ID'),
        'client_secret' => env('KATSANA_CLIENT_SECRET'),
        'environment' => env('KATSANA_ENVIRONMENT', 'production'),
        //Optional
        'endpoints'=>[
            'api' => 'http://katsana-api-endpoint',
            'oauth' => 'http://katsana-outh-endpoint',
        ],
    ],
];



return [

    // ...

    'katsana' => [
        'access_token' => env('KATSANA_ACCESS_TOKEN'),
        'environment' => env('KATSANA_ENVIRONMENT', 'production'),
    ],
];