PHP code example of inicial / infoglobo-php

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

    

inicial / infoglobo-php example snippets






$infoGlobo = new InfoGlobo\InfoGlobo();
$infoGlobo->setApiBaseUrl ('https://api-ig.infoglobo.com.br/');
$infoGlobo->setApiAuthUser('username');
$infoGlobo->setApiAuthPass('password');
$infoGlobo->setApiCustomer('customer');

$customer = $infoGlobo->getCustomerByCpf('96356986523');
bash
php composer.phar -vvv 
bash
php composer.phar -vvv update