PHPackages                             ossbrownie/exchange-rate - 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. ossbrownie/exchange-rate

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

ossbrownie/exchange-rate
========================

Allows you to receive current exchange rates from various sources and convert them.

0.0.1(7y ago)0584MITPHPPHP &gt;=7.0

Since Apr 14Pushed 7y agoCompare

[ Source](https://github.com/ossbrownie/exchange-rate)[ Packagist](https://packagist.org/packages/ossbrownie/exchange-rate)[ Docs](https://github.com/ossbrownie/exchange-rate)[ RSS](/packages/ossbrownie-exchange-rate/feed)WikiDiscussions master Synced 2d ago

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

ExchangeRate
============

[](#exchangerate)

[![License](https://camo.githubusercontent.com/0330ffcae3195ac224ed5a70fc0e88754dd07d03dcb3b25ea0e0606768c9884e/68747470733a2f2f706f7365722e707567782e6f72672f6f737362726f776e69652f65786368616e67652d726174652f6c6963656e7365)](https://packagist.org/packages/ossbrownie/exchange-rate)[![Latest Stable Version](https://camo.githubusercontent.com/6cd8b47daea32f4dfbe297ad8f9658d68f5837bd57affa8c7a5f1ae7bb9ecdee/68747470733a2f2f706f7365722e707567782e6f72672f6f737362726f776e69652f65786368616e67652d726174652f762f737461626c65)](https://packagist.org/packages/ossbrownie/exchange-rate)[![Latest Unstable Version](https://camo.githubusercontent.com/18243f01cec01dcbd19ef470c8dacd3671c96509c16de9be7d43da1606ea4dfa/68747470733a2f2f706f7365722e707567782e6f72672f6f737362726f776e69652f65786368616e67652d726174652f762f756e737461626c65)](https://packagist.org/packages/ossbrownie/exchange-rate)[![Total Downloads](https://camo.githubusercontent.com/538333dcab12d3a7d88b1ce7de85b29fbda4b846fc53e12ce4b3209dd0926563/68747470733a2f2f706f7365722e707567782e6f72672f6f737362726f776e69652f65786368616e67652d726174652f646f776e6c6f616473)](https://packagist.org/packages/ossbrownie/exchange-rate)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0a58c732c092ae5158b0cf35ca29998223aaa0bd45d7304fbfa2f8bdb0f5d509/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f737362726f776e69652f65786368616e67652d726174652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ossbrownie/exchange-rate/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8c3cd8019229f512241554428564d05d6fdf3d082e1cdb443cc4c41aaea42987/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f737362726f776e69652f65786368616e67652d726174652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ossbrownie/exchange-rate/?branch=master)[![Code Intelligence Status](https://camo.githubusercontent.com/15b25ce1ba77ba361df7cd9fc6a76cd93ef5a69a37748796de81ec85c7b81654/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f737362726f776e69652f65786368616e67652d726174652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Build Status](https://camo.githubusercontent.com/899575477fac9dafbaf05a2bb296a1013f1923b6396391e790a13cd1ada07083/68747470733a2f2f7472617669732d63692e6f72672f6f737362726f776e69652f65786368616e67652d726174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ossbrownie/exchange-rate)

[![PHP Version](https://camo.githubusercontent.com/f4567f24566a708b75335ee4a31a6b97a41c2096ee4bf91192000592c7fdaf76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344372e302d627269676874677265656e2e737667)](https://php.net/)

Allows you to receive current exchange rates from various sources and convert them.

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

[](#requirements)

- **PHP** = &gt;= 7.0
- **EXT-CURL** = \*
- **EXT-SIMPLEXML** = \*
- **EXT-LIBXML** = \*
- **ossbrownie/http-client** = 0.0.7

For more information about the extensions see:

**curl** -

**libxml** -

**simplexml** -

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

[](#installation)

Add a line to your "require" section in your composer configuration:

```
{
    "require": {
        "ossbrownie/exchange-rate": "0.0.1"
    }
}
```

Documentation
-------------

[](#documentation)

- [Getting a base list of currencies.](https://github.com/ossbrownie/exchange-rate/wiki/Usage)
- [Getting exchange currency rates.](https://github.com/ossbrownie/exchange-rate/wiki/Usage)
- [Exchange currency.](https://github.com/ossbrownie/exchange-rate/wiki/ExchangeCurrency)

Tests
-----

[](#tests)

To run the test suite, you need install the dependencies via composer, then run PHPUnit.

```
$> composer.phar install
$> ./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php ./tests
```

License
-------

[](#license)

ExchangeRate is licensed under the [MIT License](https://opensource.org/licenses/MIT)

Contact
-------

[](#contact)

Problems, comments, and suggestions all welcome:

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

2587d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/285262?v=4)[Brownie Points Project](/maintainers/brownie)[@brownie](https://github.com/brownie)

---

Top Contributors

[![ossbrownie](https://avatars.githubusercontent.com/u/29150511?v=4)](https://github.com/ossbrownie "ossbrownie (6 commits)")

---

Tags

currencyexchange ratesexchange ratebrownie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ossbrownie-exchange-rate/health.svg)

```
[![Health](https://phpackages.com/badges/ossbrownie-exchange-rate/health.svg)](https://phpackages.com/packages/ossbrownie-exchange-rate)
```

###  Alternatives

[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[florianv/laravel-swap

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-swap)[torann/currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.

4081.1M6](/packages/torann-currency)[ujjwal/currency-converter

Currency Converter Class with features of caching and identifying currency from country Code

49225.4k](/packages/ujjwal-currency-converter)[casinelli/currency

Handles currency for Laravel 5.

1911.8k](/packages/casinelli-currency)

PHPackages © 2026

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