PHP code example of nguyenanhung / utils-gold-price
1. Go to this page and download the library: Download nguyenanhung/utils-gold-price 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/ */
nguyenanhung / utils-gold-price example snippets
e = new \nguyenanhung\Utils\GoldPrice\GoldPriceSJC();
// Parse dữ liệu từ API ngân hàng
$parse = $price->parseDataGoldPrice();
// Hiển thị dữ liệu dạng JSON
echo $price->toJson();
// Hiển thị dữ liệu thô
echo "<pre>";
print_r($price->getResponse());
echo "</pre>";