PHP code example of bongloy / bongloy-php
1. Go to this page and download the library: Download bongloy/bongloy-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/ */
bongloy / bongloy-php example snippets
\Bongloy\Bongloy::setApiKey('sk_test_*****');
$charge = \Bongloy\Charge::create([
'amount' => 1000,
'currency' => 'USD',
'source' => '6b1ca112-add7-4bc6-b520-829e004c0580',
]);
echo $charge;
bash
composer