Package Data | |
---|---|
Maintainer Username: | DearMadMan |
Maintainer Contact: | i@dearmadman.com (Dearmadman) |
Package Create Date: | 2017-04-30 |
Package Last Update: | 2017-10-29 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-18 15:00:12 |
Package Statistics | |
---|---|
Total Downloads: | 15 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Register to config/app.php
'providers' => [
Dearmadman\Tbk\TbkServiceProvider::class,
]
...
'aliases' => [
'Tbk' => Dearmadman\Tbk\Facades\Tbk::class,
]
php artisan vendor:publish
Write app_key
and app_secret
to config/tbk.php
config file.
example from test controller:
<?php
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);
}
}