PHP code example of 0ctobat / octobat-php
1. Go to this page and download the library: Download 0ctobat/octobat-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/ */
0ctobat / octobat-php example snippets
\Octobat\Octobat::setApiKey('sk_test_BQokikJOvBiI2HlWgH4olfQ2');
$customer = \Octobat\Customer::create(['email' => "[email protected]", 'name' => 'John Doe', 'billing_address_country' => 'FR']);
echo $customer;
\Octobat\Octobat::setLogger($logger);
\Octobat\Customer::all([], [
'api_key' => 'oc_test_skey...'
]);
\Octobat\Customer::retrieve("oc_cu_xxxxxxxx", [
'api_key' => 'oc_test_skey...'
]);
bash
composer