PHP code example of icash-pl / api-php

1. Go to this page and download the library: Download icash-pl/api-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/ */

    

icash-pl / api-php example snippets

   
composer 


use iCashpl\ApiPhp\iCash;

if (isset($_POST['code'])) {
    
    array(
            'service' => 'rGiDLltiS4OrAntBHae664P7BKbNWECL',
            'number' => '7055',
            'code' => '9AB5KJ'
    ));

    // ok
    if ($icash->statusOk()) {

    }
    // error
    else {

    }
}