PHPackages                             planetadeleste/bcu-currency - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. planetadeleste/bcu-currency

ActiveLibray[API Development](/categories/api)

planetadeleste/bcu-currency
===========================

Currency API getting from Uruguayan BCU bank

1.0.3(2y ago)02MITPHPPHP ~7.2

Since Jun 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/planetadeleste/bcu-currency)[ Packagist](https://packagist.org/packages/planetadeleste/bcu-currency)[ RSS](/packages/planetadeleste-bcu-currency/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

BCU Currency
============

[](#bcu-currency)

Currency API from Uruguayan BCU bank

[![](https://camo.githubusercontent.com/f07d2c56a3e846412fcad7ccc1f3fd896701508c4f0a5507caf4187bbc5e129f/68747470733a2f2f746f6b65692e72732f62312f6769746875622f706c616e65746164656c657374652f6263752d63757272656e6379)](https://github.com/XAMPPRocky/tokei_rs)

> Inspired in [biller/bcu](https://github.com/biller/bcu) package

Installation
------------

[](#installation)

```
composer require planetadeleste/bcu-currency
```

Usage
-----

[](#usage)

The main class `PlanetaDelEste\BCUCurrency\Currency` has three static methods, `currencies(), latest(), rate()`. Each one call a different Soap service, based on url `https://cotizaciones.bcu.gub.uy/wscotizaciones/servlet/`

### Get currencies

[](#get-currencies)

Get a list of local or global currencies

```
$obCurrencies = \PlanetaDelEste\BCUCurrency\Currency::currencies();
$obResponse = $obCurrencies->local();

$arItems = $obResponse->getItems();
```

#### Methods

[](#methods)

NameParamsReturnDescription`get``$iGroupID` int`CurrenciesResponse`Results currencies from both markets (local and international)`both``CurrenciesResponse`Results currencies from both markets (local and international)`global``CurrenciesResponse`Results currencies from international markets only`local``CurrenciesResponse`Results currencies from local markets only`getItems``array`Return an array of items like example bellow#### Response

[](#response)

Class `\PlanetaDelEste\BCUCurrency\Service\CurrenciesResponse`

##### Methods

[](#methods-1)

NameParamsReturnDescription`getItems``array`Return an array of `ItemRef` like example bellow###### Properties

[](#properties)

> \\PlanetaDelEste\\BCUCurrency\\Service\\Currencies\\ItemRef

PropertyValueDescription`Codigo``int`Numeric currecy code`Nombre``string`Name of currency```
[
  {
    "Codigo": 501,
    "Nombre": "PESO ARG.BILLETE"
  },
  {
    "Codigo": 1001,
    "Nombre": "REAL BILLETE"
  },
  {
    "Codigo": 2224,
    "Nombre": "DLS. USA CABLE"
  },
  {
    "Codigo": 2225,
    "Nombre": "DLS. USA BILLETE"
  },
  {
    "Codigo": 2230,
    "Nombre": "DLS.PROMED.FONDO"
  },
  {
    "Codigo": 9700,
    "Nombre": "UNIDAD PREVISIONAL"
  },
  {
    "Codigo": 9800,
    "Nombre": "UNIDAD INDEXADA"
  },
  {
    "Codigo": 9900,
    "Nombre": "UNIDAD REAJUSTAB"
  }
]
```

### Get last closed

[](#get-last-closed)

Returns the date of last rate closed

#### Methods

[](#methods-2)

NameParamsReturnDescription`get``\PlanetaDelEste\BCUCurrency\Service\LatestResponse`#### Usage

[](#usage-1)

```
$obLatest = \PlanetaDelEste\BCUCurrency\Currency::latest();
$obResponse = $obLatest->get();

$sDate = $obResponse->getFecha();
print_r($sDate);
```

#### Response

[](#response-1)

NameParamsReturnDescription`getFecha``string`Get date in `Y-m-d` format`2021-06-17`

### Get rate

[](#get-rate)

Get rate data of selected currency and dates

> **NAMESPACE** `\PlanetaDelEste\BCUCurrency\Service`
>
> **CLASS** `Rate`

```
$obLatest = \PlanetaDelEste\BCUCurrency\Currency::latest()->get();
$obRate = \PlanetaDelEste\BCUCurrency\Currency::rate();
$obLocalResponse = $obRate->local()->from($obLatest->getFecha())->usd()->get();
$obGlobalResponse = $obRate->global()->from($obLatest->getFecha())->usd()->get();

print_r($obLocalResponse->getItems());
print_r($obGlobalResponse->getItems());
```

#### Methods

[](#methods-3)

NameParamsReturnDescription`local``Rate`Get local currencies`global``Rate`Get international currencies`both``Rate`Get both currencies`from``string``Rate`Set date from in `Y-m-d` format`to``string``Rate`Set date to in `Y-m-d` format`ars``bool``Rate`Set/add Argentine peso currency`brl``bool``Rate`Set/add Brazilian real currency`usd``bool``Rate`Set/add USA Dollar currency`eur``bool``Rate`Set/add EUR currency. Only works with global currencies.`get``RateResponse`#### Response

[](#response-2)

Return an array of `\PlanetaDelEste\BCUCurrency\Service\RateResponse\ItemRef` items

PropertyValueDescription`Fecha``string`Date of current rate (Y-m-d)`Moneda``int`Currency ID`Nombre``string`Name of currency`CodigoISO``string`ISO code`Emisor``string`Emmiter country`TCC``float`Low value`TCV``float`High value`ArbAct``float`Arbitrage value`FormaArbitrar``int`Arbitrage format

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~356 days

Total

4

Last Release

768d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6322770?v=4)[Planeta del Este](/maintainers/planetadeleste)[@planetadeleste](https://github.com/planetadeleste)

---

Top Contributors

[![alvaro-canepa](https://avatars.githubusercontent.com/u/5142298?v=4)](https://github.com/alvaro-canepa "alvaro-canepa (9 commits)")

### Embed Badge

![Health badge](/badges/planetadeleste-bcu-currency/health.svg)

```
[![Health](https://phpackages.com/badges/planetadeleste-bcu-currency/health.svg)](https://phpackages.com/packages/planetadeleste-bcu-currency)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
