ox / cbr
Получение актуальных курсов валют от центрального банка Российской Федерации
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 1 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/ox/cbr
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-01-20 15:04:52 UTC
README
Получение актуальных курсов валют от центрального банка Российской Федерации
use Ox\Cbr\Cbr;
$date="02/03/2002"; //02/03/2002 or "";
$course=Cbr::getCourse($date);
$result= json_decode($course);
print_r($result);
stdClass Object (
[AUD] => stdClass Object
(
[charCode] => AUD
[nominal] => 1
[name] => 1
[value] => 16,0102
)
[GBP] => stdClass Object
(
[charCode] => GBP
[nominal] => 1
[name] => 1
[value] => 43,8254
)
[BYR] => stdClass Object
(
[charCode] => BYR
[nominal] => 1000
[name] => 1000
[value] => 18,4290
)...