PHP code example of rangkotodotcom / simanang

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

    

rangkotodotcom / simanang example snippets


// config/app.php

'Providers' => [
   // ...
   Rangkotodotcom\Simanang\SimanangServiceProvider::class,
]

// config/app.php

'aliases' => [
    // ...
    'Simanang' => Rangkotodotcom\Simanang\Simanang::class,
];

return [

    /*
    |--------------------------------------------------------------------------
    | Simanang Mode
    |--------------------------------------------------------------------------
    |
    | By default, use development. Supported Mode: "development", "production"
    |
    */

    'simanang_mode' => env('SIMANANG_MODE', 'development'),

    /*
    |--------------------------------------------------------------------------
    | Simanang Client ID
    |--------------------------------------------------------------------------
    |
    | Client ID from SIMANANG API
    |
    */

    'simanang_client_id' => env('SIMANANG_CLIENT_ID', ''),

    /*
    |--------------------------------------------------------------------------
    | Simanang Client Secret
    |--------------------------------------------------------------------------
    |
    | Client Secret from SIMANANG API
    |
    */

    'simanang_client_secret' => env('SIMANANG_CLIENT_SECRET', ''),
];
bash
php artisan vendor:publish --provider="Rangkotodotcom\Simanang\SimanangServiceProvider"