PHPackages                             fedeisas/laravel-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/laravel-dolar-blue

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

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

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

1.0(12y ago)8201[1 issues](https://github.com/fedeisas/laravel-dolar-blue/issues)MITPHPPHP &gt;=5.4.0

Since May 4Pushed 11y ago1 watchersCompare

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

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

Laravel Dolar Blue
==================

[](#laravel-dolar-blue)

[![Travis Badge](https://camo.githubusercontent.com/733c66cbc996a508a022ae947ab0e69e69d6dab8c3ac81cb1e79007ad65da2f0/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f66656465697361732f6c61726176656c2d646f6c61722d626c75652e706e67)](http://travis-ci.org/fedeisas/laravel-dolar-blue)[![Coverage Status](https://camo.githubusercontent.com/c625ca0a71ae1a7cfaa63b2af9bc756a6cb6a51901efd90cb733cd515f855cab/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f66656465697361732f6c61726176656c2d646f6c61722d626c75652f62616467652e706e67)](https://coveralls.io/r/fedeisas/laravel-dolar-blue)[![Latest Stable Version](https://camo.githubusercontent.com/a92267a85f22ef31b9eb1a0a4758a253ea31dbd962ae130b8c4253c7cb4d7f2a/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f6c61726176656c2d646f6c61722d626c75652f762f737461626c652e706e67)](https://packagist.org/packages/fedeisas/laravel-dolar-blue)[![Latest Unstable Version](https://camo.githubusercontent.com/be4b0b83242a87905fd452351158b23f0ad8393ed0c790a30c4ca0a0f85c04d6/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f6c61726176656c2d646f6c61722d626c75652f762f756e737461626c652e706e67)](https://packagist.org/packages/fedeisas/laravel-dolar-blue)[![Total Downloads](https://camo.githubusercontent.com/97de389525031a8221415a6284861c7fb66c0b4b02c4ca0483ea4275b4bb2929/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f6c61726176656c2d646f6c61722d626c75652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/fedeisas/laravel-dolar-blue)[![License](https://camo.githubusercontent.com/c24665a6ce23e62bf523ae4d3a0caa5a39e11bbd6b465d88ab4a136eb25f2703/68747470733a2f2f706f7365722e707567782e6f72672f66656465697361732f6c61726176656c2d646f6c61722d626c75652f6c6963656e73652e706e67)](https://packagist.org/packages/fedeisas/laravel-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)

- Laravel 4
- PHP &gt;= 5.4

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

[](#installation)

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

```
{
  "require": {
        "laravel/framework": "4.0.*",
        "fedeisas/laravel-dolar-blue": "dev-master"
    },
    "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',
)
```

Usage
-----

[](#usage)

Currenly it only supports 3 providers (more to come):

- LaNacion
- DolarBlue
- BlueLytics

```
$service = App::make('Fedeisas\LaravelDolarBlue\LaravelDolarBlue');
$result = $service->get('DolarBlue'); // or $service->DolarBlue();
// returns
// array(
//   'buy' => '10.15',
//   'sell' => '10.55',
//   'timestamp' => 1399080004
// )
```

Or you can use the facade:

```
$result = DolarBlue::get('LaNacion');

// and using some __call magic
$result = DolarBlue::LaNacion();
$result = DolarBlue::DolarBlue();
$result = DolarBlue::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

27

—

LowBetter than 49% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

4392d 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 (12 commits)")[![sicarul](https://avatars.githubusercontent.com/u/4952116?v=4)](https://github.com/sicarul "sicarul (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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