fjescala / centralbank
package to extract the price of the different currencies by the central bank
dev-main
2022-09-07 15:04 UTC
Requires
- php: >=7.1
- fabpot/goutte: ^4.0.2
Requires (Dev)
- illuminate/support: ^5.3
- phpunit/phpunit: ~5.0
- phpunit/phpunit-mock-objects: ~3.0
This package is not auto-updated.
Last update: 2024-05-02 03:18:28 UTC
README
package to extract the price of the different currencies by the central bank of Venezuela
Installation
composer require fjescala/centralbank
Uso
Here is a little example:
use Fjescala\CentralBank\CentralBankManager as CentralBank; // at the top of the file
public function __construct(CentralBank $central)
{
$this->central = $central;
}
public function index()
{
$amountInBolivares = $this->central->getCurrency("dolar");
$amountInBolivares = $this->central->getCurrency("rublo");
$amountInBolivares = $this->central->getCurrency("lira");
$amountInBolivares = $this->central->getCurrency("yuan");
$amountInBolivares = $this->central->getCurrency("euro");
}