PHP code example of techtailor / laravel-coindcx-api

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


COINDCX_KEY=YOUR_API_KEY
COINDCX_SECRET=YOUR_SECRET

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

use TechTailor\CoinDCXApi\CoinDCXApi;

$cdx = new CoinDCXApi();

$ticker = $cdx->getTicker();

$cdx = new CoinDCXApi();

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

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