PHPackages                             fedeisas/dolar-blue - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fedeisas/dolar-blue

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fedeisas/dolar-blue
===================

Package to fetch latest USD conversion rate on Argentina's black market

1.0(11y ago)119MITPHPPHP &gt;=5.4.0

Since May 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/fedeisas/dolar-blue)[ Packagist](https://packagist.org/packages/fedeisas/dolar-blue)[ RSS](/packages/fedeisas-dolar-blue/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

Dolar Blue PHP
==============

[](#dolar-blue-php)

[![Travis Badge](https://camo.githubusercontent.com/0a6f0d0381b18166bbbfeb17f1e16f2db62fc1ecc4a3e9b727ecdd8f194f7ab4/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f66656465697361732f646f6c61722d626c75652e706e67)](http://travis-ci.org/fedeisas/dolar-blue)[![Coverage Status](https://camo.githubusercontent.com/725558944b906b5704064ba2f6e42e2a709d24c51a5dbdd450405ea938e6186a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f66656465697361732f646f6c61722d626c75652f62616467652e706e67)](https://coveralls.io/r/fedeisas/dolar-blue)[![Latest Stable Version](https://camo.githubusercontent.com/d81bbd9c634741a7395805b11fbd24cbd4fbf46e0cdd4d8bc6ae09ed4a4b620c/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f646f6c61722d626c75652f762f737461626c652e706e67)](https://packagist.org/packages/fedeisas/dolar-blue)[![Latest Unstable Version](https://camo.githubusercontent.com/a21d68476dadf9498e164b815f21a7867a523f2f09c91e4ebd23ae0567742933/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f646f6c61722d626c75652f762f756e737461626c652e706e67)](https://packagist.org/packages/fedeisas/dolar-blue)[![Total Downloads](https://camo.githubusercontent.com/38e11b8e29fe155ba1dd17331c69dd89ba3c6583941a0b8fdd738cf3cc798cd6/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f646f6c61722d626c75652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/fedeisas/dolar-blue)[![License](https://camo.githubusercontent.com/86688070eaffaf0583b437579c375ffbb06e940154e6ea2c4e519d9c8f724e86/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f646f6c61722d626c75652f6c6963656e73652e706e67)](https://packagist.org/packages/fedeisas/dolar-blue)

Why?
----

[](#why)

Because Argentina has a black market for currency exchange. And this makes it easy to retrieve the current USD conversion rate from different sources. And also because I needed something small to talk about Package Development and testing on [this meetup](http://www.meetup.com/Laravel-Buenos-Aires/events/174574162/).

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `fedeisas/dolar-blue.

```
{
  "require": {
        ...
        "fedeisas/dolar-blue": "1.*"
        ...
    },
    "minimum-stability" : "dev"
}
```

Next, update Composer from the Terminal:

```
$ composer update
```

Once this operation completes, the final step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'providers' => array(
    ...
    'Fedeisas\LaravelDolarBlue\LaravelDolarBlueServiceProvider',
)
```

Optionally you can also add the Facade to the aliases array on `app/config/app.php`:

```
'aliases' => array(
    ...
    'DolarBlue' => 'Fedeisas\LaravelDolarBlue\Facade\LaravelDolarBlue',
)
```

Providers
---------

[](#providers)

- [LaNacion](http://www.lanacion.com.ar/)
- [DolarBlue](http://dolarblue.net/)
- [BlueLytics](http://bluelytics.com.ar/)
- [PrecioDolarBlue](http://www.preciodolarblue.com.ar/)

Usage
-----

[](#usage)

```
use Fedeisas\DolarBlue\DolarBlue;
use GuzzleHttp\Client;

$service = new DolarBlue(new Client);
$result = $service->get('DolarBlue'); // or $service->DolarBlue();
// returns
// array(
//   'buy' => '10.15',
//   'sell' => '10.55',
//   'timestamp' => 1399080004
// )
```

Or you can use magic methods:

```
$result = $service->LaNacion();
$result = $service->DolarBlue();
$result = $service->BlueLytics();
```

Contributing
------------

[](#contributing)

```
$ composer install --dev
$ ./vendor/bin/phpunit
```

In addition to a full test suite, there is Travis integration.

Found a bug?
------------

[](#found-a-bug)

Please, let me know! Send a pull request or a patch. Questions? Ask! I will respond to all filed issues.

Inspiration
-----------

[](#inspiration)

I needed an idea for a small library, and I borrowed it from a friend who has done something similar for NodeJS. You should check it out:

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4367d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d1a4ac79561ed7edef104265d9cabcdbc936a701456d6c65d28ac29255f3bbf?d=identicon)[fedeisas](/maintainers/fedeisas)

---

Top Contributors

[![fedeisas](https://avatars.githubusercontent.com/u/251675?v=4)](https://github.com/fedeisas "fedeisas (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fedeisas-dolar-blue/health.svg)

```
[![Health](https://phpackages.com/badges/fedeisas-dolar-blue/health.svg)](https://phpackages.com/packages/fedeisas-dolar-blue)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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