PHP code example of axp-dev / cbrru-api

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

    

axp-dev / cbrru-api example snippets


// Получения котировок на заданный день
$daily = CBR::getDaily(['date_req' => date('d/m/Y')]);

print_r($daily);

CBR::getDaily( $params )

CBR::getCurrencyCode( $params )

CBR::getDynamic( $params )

CBR::getOStat( $params )

CBR::getMetal( $params )

CBR::getMKR( $params )

CBR::getDEPO( $params )

CBR::getNews()

CBR::getBIC( $params )

CBR::getSwap( $params )

CBR::getCoinsBase( $params )