PHPackages                             blvckgvd/currencylib - 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. blvckgvd/currencylib

ActiveLibrary

blvckgvd/currencylib
====================

PHP library to convert one currency to another

1.0.2(3y ago)415MITPHPPHP &gt;=7.4

Since May 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/BLVCKGVD/currencylib)[ Packagist](https://packagist.org/packages/blvckgvd/currencylib)[ RSS](/packages/blvckgvd-currencylib/feed)WikiDiscussions main Synced 1mo ago

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

currencylib
===========

[](#currencylib)

Light weight library to convert currencies with offset

[![PHP Composer](https://github.com/BLVCKGVD/currencylib/actions/workflows/php.yml/badge.svg)](https://github.com/BLVCKGVD/currencylib/actions/workflows/php.yml)

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://choosealicense.com/licenses/mit/)

[![PHP](https://camo.githubusercontent.com/3c5b2ea36e8717679a0ae864c2555e1ad9339b7d3f40e323a93ac93184ad7cb9/68747470733a2f2f62616467656e2e6e65742f62616467652f7068702f2532322533453d372e342532322f626c7565)](https://camo.githubusercontent.com/3c5b2ea36e8717679a0ae864c2555e1ad9339b7d3f40e323a93ac93184ad7cb9/68747470733a2f2f62616467656e2e6e65742f62616467652f7068702f2532322533453d372e342532322f626c7565)

[![ext-simplexml](https://camo.githubusercontent.com/b51aa0c36b39e310478d8e8cf56686a854ac2d334ca6f3bc5b789c152e267263/68747470733a2f2f62616467656e2e6e65742f62616467652f6578742d73696d706c65786d6c2f2532322a2532322f677265656e)](https://camo.githubusercontent.com/b51aa0c36b39e310478d8e8cf56686a854ac2d334ca6f3bc5b789c152e267263/68747470733a2f2f62616467656e2e6e65742f62616467652f6578742d73696d706c65786d6c2f2532322a2532322f677265656e)

[![Made By](https://camo.githubusercontent.com/6d9443e07a0b5c221dcab1f09aac1a912357ccadc733ac67083b52f115c06aa0/68747470733a2f2f62616467656e2e6e65742f62616467652f617574686f722f626c76636b67766428416e746f6e2d5368756c7a68656e6b6f292f726564)](https://camo.githubusercontent.com/6d9443e07a0b5c221dcab1f09aac1a912357ccadc733ac67083b52f115c06aa0/68747470733a2f2f62616467656e2e6e65742f62616467652f617574686f722f626c76636b67766428416e746f6e2d5368756c7a68656e6b6f292f726564)

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

[](#installation)

Install currencylib with composer

```
  composer require blvckgvd/currencylib
```

Usage/Examples
--------------

[](#usageexamples)

### Just Convert

[](#just-convert)

```
use Blvckgvd\Currencylib\CurrencyLib;

public function convertPrice() {
  $price = CurrencyLib::convert('USD', 'EUR', 350, 2);
  return $price;
}
// Converted from US Dollars to Euros number
```

### Convert with currency symbol

[](#convert-with-currency-symbol)

```
use Blvckgvd\Currencylib\CurrencyLib;

public function convertPriceWithSymbol() {
  $price = CurrencyLib::convertWithCurrencySymbol('USD', 'EUR', 350, 2);
  return $price;
}
// Converted from US Dollars to Euros number with symbol €
```

### Get Currency symbol

[](#get-currency-symbol)

```
use Blvckgvd\Currencylib\CurrencyLib;

public function getSymbol() {
  $symbol = CurrencyLib::getCurrencySymbol('JPY');
  return $symbol;
}
// Get symbol from currency code, at this situation you'll get ¥
```

Supported currency codes
------------------------

[](#supported-currency-codes)

- AUD
- AZN
- GBP
- AMD
- BYN
- BGN
- BRL
- HUF
- VND
- HKD
- GEL
- DKK
- AED
- USD
- EUR
- EGP
- INR
- IDR
- KZT
- CAD
- QAR
- KGS
- CNY
- MDL
- NZD
- NOK
- PLN
- RON
- XDR
- SGD
- TJS
- THB
- TRY
- TMT
- UZS
- UAH
- CZK
- SEK
- CHF
- RUB
- RSD
- ZAR
- KRW
- JPY

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

1095d ago

PHP version history (2 changes)1.0.1PHP &gt;=5.6

1.0.2PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![BLVCKGVD](https://avatars.githubusercontent.com/u/39829149?v=4)](https://github.com/BLVCKGVD "BLVCKGVD (22 commits)")

---

Tags

currenciescurrencycurrency-codescurrency-conversioncurrency-convertercurrency-symbolcurrency-symbolsphpsymbols

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/blvckgvd-currencylib/health.svg)

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

PHPackages © 2026

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