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

ActiveDev

ineersa/converter
=================

Currency converter

v1.0.1(10y ago)124PHPPHP &gt;=5.4.0

Since Jan 30Pushed 10y ago2 watchersCompare

[ Source](https://github.com/ineersa/currency-converter)[ Packagist](https://packagist.org/packages/ineersa/converter)[ RSS](/packages/ineersa-converter/feed)WikiDiscussions master Synced 2mo ago

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

currency-converter
==================

[](#currency-converter)

Simple API for currency converting.

Currently using ECB currency rates service.

### Instalation:

[](#instalation)

`composer require ineersa/converter`

### Features:

[](#features)

- results caching
- easy to extend
- fast?

### Examples of usage:

[](#examples-of-usage)

Basic usage:

```
use Ineersa\Converter\Converter;
use Ineersa\Converter\Services\EcbService;

$converter = new Converter(new EcbService());
echo $converter->convert('USD','RUB',100);
```

Get available currencies list:

```
$service = new EcbService();
$service->getCurrenciesList();
```

Get single currency rate for euro:

```
$service = new EcbService();
echo $service->getRate('USD');
```

You can control what client, adapter or cache you want to use via service. For example:

```
$cache = new MemcacheCache();
$service = new EcbService($cache);
echo $service->getRate('USD');
```

### [openexchangerates](https://openexchangerates.org) was added in version 1.0.1

[](#openexchangerates-was-added-in-version-101)

To get appp\_id token visit [openexchangerates](https://openexchangerates.org) and sign up.

Free plan exists (1000 requests per month), which is fairly enough for simple usage.

\###Examples of usage:

Basic usage:

```
    $service = new OpenExchangeRatesService();
    $service->getClient()->setAppId('YOUR_APP_ID_TOKEN');
    $converter = new Converter($service);
    echo $converter->convert('USD','RUB',1);
```

Specific features for paid plans:

```
    $service = new OpenExchangeRatesService();
    $service->getClient()->setAppId('YOUR_APP_ID_TOKEN');
    $service->getClient()->setBase('EUR');//You can control your base currency
    $service->getClient()->setSymbols('EUR,USD,RUB');//You can control what currencies you need in response
    $converter = new Converter($service);
    echo $converter->convert('USD','RUB',1);
```

By default Memcached, Guzzle used. To use your own, implement appropriate interfaces.

[Demo](http://currency.ineersa.me)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3740d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86f5d21ab3c3ddca3f9af93bbcd79813a7db4eb17b179476538741519621ba7a?d=identicon)[ineersa](/maintainers/ineersa)

---

Top Contributors

[![ineersa](https://avatars.githubusercontent.com/u/4228843?v=4)](https://github.com/ineersa "ineersa (8 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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