Skip to content

nguyenanhung/utils-exchange-rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Latest Unstable Version composer.lock License

Utils: Exchange Rates

Hàm lấy dữ liệu tỷ giá giao dịch từ website 1 số ngân hàng

Tỷ giá theo báo cáo từ ngân hàng Vietcombank

Hàm bóc tách dữ liệu từ website ngân hàng Vietcombank: https://portal.vietcombank.com.vn/Personal/TG/Pages/ty-gia.aspx

<?php
require_once __DIR__ . '/vendor/autoload.php';
$vcb = new \nguyenanhung\Utils\ExchangeRates\Vietcombank();

// Parse dữ liệu từ API ngân hàng
$parse = $vcb->parseDataExchangeRates();
// Hiển thị dữ liệu dạng JSON
echo $parse->toJson();

// Hiển thị dữ liệu thô

echo "<pre>";
print_r($parse->getResponse());
echo "</pre>";

Liên hệ

Nếu có bất cứ thông tin nào cần trao đổi và tìm hiểu, vui lòng liên hệ theo thông tin sau

Name Email Skype Facebook
Hung Nguyen [email protected] nguyenanhung5891 @nguyenanhung

From Hanoi with Love <3