PHPackages                             ipaulk/exchange-rates - 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. ipaulk/exchange-rates

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

ipaulk/exchange-rates
=====================

Retrieve currency exchange rate using several web services.

1.1.0(9y ago)0862MITPHPPHP &gt;=5.5

Since Mar 15Pushed 9y agoCompare

[ Source](https://github.com/iPaulK/exchange-rates)[ Packagist](https://packagist.org/packages/ipaulk/exchange-rates)[ Docs](https://github.com/iPaulK/exchange-rates/)[ RSS](/packages/ipaulk-exchange-rates/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Exchange Rates
--------------

[](#exchange-rates)

Retrieve currency exchange rate using several web services.

Available webservicess:
-----------------------

[](#available-webservicess)

1. WebserviceX.NET Data Protocol is a SOAP-inspired technology for reading, writing, and modifying information on the web.
2. Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central Bank.

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

[](#installation)

```
$ composer require ipaulk/exchange-rates

```

Usage
-----

[](#usage)

Get specific exchange rate from Webservicex.net (by default)

```
use IPaulK\ExchangeRates\ExchangeRates as ExchangeRates;

$exchangeRates = new ExchangeRates();

/** @var float $value */
$value = $exchangeRates->getRate('USD', 'EUR');
```

Get specific exchange rate from fixer.io

```
use IPaulK\ExchangeRates\ExchangeRates as ExchangeRates;

$exchangeRates = new ExchangeRates();
$exchangeRates->setProvider('fixerio');

/** @var float $value */
$value = $exchangeRates->getRate('USD', 'EUR');
```

Request specific exchange rates.

```
use IPaulK\ExchangeRates\ExchangeRates as ExchangeRates;

$exchangeRates = new ExchangeRates();

/** @var array $data */
$data = $exchangeRates->fetchRates('USD', ['EUR', 'GBP', 'JPY', 'RUB', 'ILS', 'AUD']);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~3 days

Total

3

Last Release

3387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87f09c5ce0cdb55106c5400ffc0507b00dd878bc7634d352e1bc55a12d882b84?d=identicon)[iPaulK](/maintainers/iPaulK)

---

Top Contributors

[![pkulinovich](https://avatars.githubusercontent.com/u/2189112?v=4)](https://github.com/pkulinovich "pkulinovich (7 commits)")

---

Tags

currencyexchange-ratewebservicexphpcurrencyfinanceexchange ratewebservicex

### Embed Badge

![Health badge](/badges/ipaulk-exchange-rates/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.8k69.4k](/packages/grumpydictator-firefly-iii)[torann/currency

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

4031.1M6](/packages/torann-currency)[firefly-iii/data-importer

Firefly III Data Import Tool.

8005.8k](/packages/firefly-iii-data-importer)[cartalyst/converter

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

88471.0k7](/packages/cartalyst-converter)[danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

42102.4k](/packages/danielme85-laravel-cconverter)

PHPackages © 2026

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