PHP code example of dearmadman / tbk

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

    

dearmadman / tbk example snippets


'providers' => [
  Dearmadman\Tbk\TbkServiceProvider::class,
]

... 

'aliases' => [
  'Tbk' => Dearmadman\Tbk\Facades\Tbk::class,
]

php artisan vendor:publish



namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Tbk;

class TestController extends Controller
{
  public function test() {
    $response = Tbk::driver('dg')->get([
      'adzone_id' => 81522959,
      'page_size' => 10,
    ]);
    return json_decode($response->getBody()->getContents(), true);
  }
}