PHP code example of zgabievi / tbc

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

    

zgabievi / tbc example snippets


Gabievi\TBC\TBCServiceProvider::class

'TBC' => Gabievi\TBC\TBCFacade::class

Route::get('payment/{status}', function($status) {
    if ($status == 'success') {
        return TBC::getTransactionResult(request('trans_id'));
    }
    
    return 'FAIL!';
})->where('status', 'success|fail');

Route::get('pay', function() {
    return view('payment.tbc', [
        'start' => TBC::SMSTransaction(1)
    ]);
});

php artisan vendor:publish