fjescala/centralbank

package to extract the price of the different currencies by the central bank

dev-main 2022-09-07 15:04 UTC

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");
       

      
    }