1. Go to this page and download the library: Download webumer/bcb-php-sdk 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/ */
webumer / bcb-php-sdk example snippets
use Webumer\Bcb\BcbClient;
use Webumer\Bcb\BcbEnvironment;
// For UAT/Sandbox environment
$client = BcbClient::forEnvironment(
environment: BcbEnvironment::UAT,
clientId: 'your_client_id',
clientSecret: 'your_client_secret'
);
// For Production environment
$client = BcbClient::forEnvironment(
environment: BcbEnvironment::PRODUCTION,
clientId: 'your_client_id',
clientSecret: 'your_client_secret'
);