PHP code example of techtailor / laravel-wazirx-api

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

    

techtailor / laravel-wazirx-api example snippets


WAZIRX_KEY=YOUR_API_KEY
WAZIRX_SECRET=YOUR_SECRET

return [
    'auth' => [
        'key'        => env('WAZIRX_KEY', 'YOUR_API_KEY'),
        'secret'     => env('WAZIRX_SECRET', 'YOUR_SECRET')
    ],
];

use TechTailor\Wazirx\WazirxAPI;

$wazirx = new WazirxApi();

$time = $wazirx->getTime();

$wazirx = new WazirxApi();

$wazirx->setApi($apiKey, $secretKey);

$accountInfo = $wazirx->getAccountInfo();
bash
php artisan vendor:publish --tag="wazirx-api-config"