PHP code example of eduardo / gerencianet-sdk-php-atualizado

1. Go to this page and download the library: Download eduardo/gerencianet-sdk-php-atualizado 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/ */

    

eduardo / gerencianet-sdk-php-atualizado example snippets




use Gerencianet\Gerencianet;

try {
  /* code */
} catch(GerencianetException $e) {
  /* Gerencianet's api errors will come here */
} catch(Exception $ex) {
  /* Other errors will come here */
}

$options = [
  'client_id' => 'client_id',
  'client_secret' => 'client_secret',
  'sandbox' => true
];

$api = new Gerencianet($options);

$options = [
  'client_id' => 'client_id',
  'client_secret' => 'client_secret',
  'sandbox' => false
];

$api = new Gerencianet($options);

$ phpunit -c config.xml

php -S localhost:9000

$ composer 

...
"duardo/gerencianet-sdk-php-atualizado": "1.*"
},
...