PHP code example of freshworkstudio / khipu-laravel

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

    

freshworkstudio / khipu-laravel example snippets


'providers' => array(
    …
    'FreshworkStudio\LaravelKhipu\KhipuServiceProvider',
    …
),

'aliases' => array(
    …
    'Khipu' => 'FreshworkStudio\LaravelKhipu\Facades\Khipu',
    …
),
 
//routes.php

Route::get('/', function () {
    $banks =  Khipu::loadService('ReceiverBanks')->consult();
    
    echo $banks;
});
 
//routes.php

Route::get('/', function (FreshworkStudio\Khipu\Khipu $khipu) {
    $banks =  $khipu->loadService('ReceiverBanks')->consult();
	
	//You can also can call the service as a properties of the class..
	$khipu->ReceiverBanks->consult();
    
    echo $banks;
});