PHPackages                             edrep/currency-converter - 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. edrep/currency-converter

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

edrep/currency-converter
========================

A PHP package for currency conversion using various providers.

v1.0.1(1y ago)0344↓81.8%MITPHPPHP &gt;=8.1

Since Apr 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/edrep/currency-converter)[ Packagist](https://packagist.org/packages/edrep/currency-converter)[ RSS](/packages/edrep-currency-converter/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Currency Converter
==================

[](#currency-converter)

A PHP library for currency conversion using pluggable providers. Designed for extensibility and easy integration.

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

[](#installation)

Install via Composer:

```
composer require edrep/currency-converter
```

Usage
-----

[](#usage)

```
use Edrep\CurrencyConverter\CurrencyConverter;
use Edrep\CurrencyConverter\Providers\YourProvider;

// By default, the provider uses the in-memory cache engine
$provider = new YourProvider();
$converter = new CurrencyConverter($provider);

$result = $converter->convert('USD', 'EUR', 100);
echo $result;

// To use a custom cache engine (e.g., RedisCache):
use Edrep\CurrencyConverter\CacheEngines\RedisCache;
$redisCache = new RedisCache('127.0.0.1', 6379);
$providerWithRedis = new YourProvider($redisCache);
$converterWithRedis = new CurrencyConverter($providerWithRedis);
```

Cache Engines
-------------

[](#cache-engines)

- By default, the library uses an in-memory cache engine (`MemoryCache`).
- You can provide any cache engine implementing the required interface, such as `RedisCache` for persistent caching.

Extending
---------

[](#extending)

Implement `ForexProviderInterface` to add your own rate provider.

License
-------

[](#license)

This project is licensed under the MIT License. See the LICENSE file for details.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance45

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a89a6905e5544926097c5ec07f5d4d8d721f9f8bb31f35bab7d2187d8e6a2704?d=identicon)[edrep](/maintainers/edrep)

---

Top Contributors

[![edrep](https://avatars.githubusercontent.com/u/1156737?v=4)](https://github.com/edrep "edrep (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/edrep-currency-converter/health.svg)

```
[![Health](https://phpackages.com/badges/edrep-currency-converter/health.svg)](https://phpackages.com/packages/edrep-currency-converter)
```

###  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.

749284.3k35](/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)
