PHP code example of mostafax / knet

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

    

mostafax / knet example snippets


use Mostafax\Knet\Knet;

  $data = [
            'amount' => 20,
            'order_id' => 200,
            'track_id' => rand(0, 9999),
            'udf1' => null,
            'udf2' => null,
            'udf3' => null,
            'udf4' => null,
            'udf5' => null
        ]; 

$Knet = new Knet();
$Knet->init($data);

    protected $except = [
        'knet/*'
    ];
composer
  php artisan vendor:publish