PHP code example of javaabu / boli-api

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

    

javaabu / boli-api example snippets


// config/app.php
'providers' => [
    ...
    Javaabu\Boli\BoliServiceProvider::class,
],

// config/app.php
'aliases' => [
    ...
    'Boli' => Javaabu\Boli\Facades\Boli::class,
],

// config/services.php
...
'boli' => [
    'username' => env('BOLI_USERNAME'), // Boli API username 
    'password' => env('BOLI_PASSWORD'), // Boli API password 
    'url' => env('BOLI_API_URL'), // optional, use only if you need to override the default,
                                  // defaults to https://api-business.egov.mv/WebApi/api/   
],
...
 php
$boli = App::make('boli');
$entity = $boli->getBusinessEntity('C-0933/2017');