PHP code example of henryejemuta / php-clubkash-vtu
1. Go to this page and download the library: Download henryejemuta/php-clubkash-vtu 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/ */
henryejemuta / php-clubkash-vtu example snippets
use HenryEjemuta\Clubkash\Client;
$config = [
'timeout' => 30,
];
$client = new Client('YOUR_USER_ID', 'YOUR_API_KEY', $config);
// Data Plan Code: Get from ClubKash Documentation or use verify tool
$response = $client->purchaseData('01', 'DATA_PLAN_CODE', '08012345678');
print_r($response);