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

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

rdehnhardt/exchange-rate
========================

Performs currency conversion automatically based on api fixer.io

v1.0.3(8y ago)4341MITPHP

Since Sep 12Pushed 8y agoCompare

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

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

Exchange Rate
=============

[](#exchange-rate)

[![Author](https://camo.githubusercontent.com/3d1941e295d9f2f87cf1c5a2c8c80c7b64d3309c32cb51656103a9ce90d0a571/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4072656e61746f64656e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/renatoden)[![Latest Version](https://camo.githubusercontent.com/7db8a140b4ca9ecbcbd70c5a92a11dc521d8e1263c9d0a6cb174880fe376793a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f726465686e68617264742f65786368616e67652d726174652e7376673f7374796c653d666c61742d737175617265)](https://github.com/rdehnhardt/exchange-rate/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/59c9bdc564771d2d28e5bf55a9603be6c51eb66ac9079e3ce9006287468cf103/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726465686e68617264742f65786368616e67652d726174652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rdehnhardt/exchange-rate)[![Coverage Status](https://camo.githubusercontent.com/dcbc86079c37a2715cd2d1511b01548643a8969775282a794aa8fe161f89a2bc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f726465686e68617264742f65786368616e67652d726174652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rdehnhardt/exchange-rate/code-structure)[![Quality Score](https://camo.githubusercontent.com/5d90049822e7a0ebf5066ce68229c03f500e7082cff8f48ffd4b10149f0dd229/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f726465686e68617264742f65786368616e67652d726174652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rdehnhardt/exchange-rate)[![Total Downloads](https://camo.githubusercontent.com/37ab2c00d1169bb928e94a62a3cd8fd0b261f78053bf17d8ad31d2396c783397/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726465686e68617264742f65786368616e67652d726174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rdehnhardt/exchange-rate)

Performs currency conversion automatically based on api fixer.io

### Instalation

[](#instalation)

```
composer require rdehnhardt/exchange-rate

```

### How to use (automatically)

[](#how-to-use-automatically)

```
use Rdehnhardt\ExchangeRate\Exchange;

$exchange = new Exchange();
$exchange->rate(10, 'EUR', 'USD'); // 11,933 - at 2017-09-12

```

### How to use (manually)

[](#how-to-use-manually)

```
use Rdehnhardt\ExchangeRate\Exchange;

$exchange = new Exchange();
$exchange->rate(10, 'EUR', 'USD', 1.2987); // 12,987

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

4

Last Release

3212d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7077461?v=4)[Renato Dehnhardt](/maintainers/rdehnhardt)[@rdehnhardt](https://github.com/rdehnhardt)

---

Top Contributors

[![rdehnhardt](https://avatars.githubusercontent.com/u/7077461?v=4)](https://github.com/rdehnhardt "rdehnhardt (6 commits)")[![whera](https://avatars.githubusercontent.com/u/3909582?v=4)](https://github.com/whera "whera (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1523.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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