PHPackages                             amelia/money - 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. amelia/money

ActiveLibrary[API Development](/categories/api)

amelia/money
============

A library for working with the Open Exchange Rates API in PHP

v0.3.1(10y ago)241[1 issues](https://github.com/ameliaikeda/money/issues)MITPHPPHP &gt;= 5.4

Since Jun 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ameliaikeda/money)[ Packagist](https://packagist.org/packages/amelia/money)[ RSS](/packages/amelia-money/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (10)Used By (0)

Money.php
---------

[](#moneyphp)

[![Build Status](https://camo.githubusercontent.com/f499cb32355b9ad987e78e652a0f1584ecb039fe9dd48459af74fb8b24c7f319/68747470733a2f2f7472617669732d63692e6f72672f616d656c6961696b6564612f6d6f6e65792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ameliaikeda/money)[![Scrutinizer](https://camo.githubusercontent.com/cc26278d1024c36d3ebe6549a4d51f5bf6d7465e9ca7485b051780c98ec85123/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616d656c6961696b6564612f6d6f6e65792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ameliaikeda/money/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/6f50fef2f719f3116851987b0a55de6d393f3a1438fcedae4a6765426e5d0003/68747470733a2f2f706f7365722e707567782e6f72672f616d656c69612f6d6f6e65792f76657273696f6e)](https://packagist.org/packages/amelia/money)[![MIT License](https://camo.githubusercontent.com/e25aaa652d4c6e028453e01509d7c0e1b7ff2684ebed4ac4689b349a66e3102c/68747470733a2f2f706f7365722e707567782e6f72672f616d656c69612f6d6f6e65792f6c6963656e7365)](https://packagist.org/packages/amelia/money)

A PHP 5.4+ library for working with currency APIs and conversion.

Current Providers for data are:

- Open Exchange Rates ()

Planned:

- Her Majesty's Revenue &amp; Customs ()
- XE.com ()

Feel free to add more!

Usage
=====

[](#usage)

To dive in with the OpenExchangeRates API implementation, go [sign up for an app id](https://openexchangerates.org/sign-up). It's free!

Laravel 5
---------

[](#laravel-5)

Money ships with a Laravel 5 service provider.

Simply add `Amelia\Money\MoneyServiceProvider::class` to your providers array in `config/app.php`.

You can type-hint `Amelia\Money\FactoryInterface` in controllers (or more importantly, form requests), or use `app(FactoryInterface::class)` to fetch it from the IoC container.

```
