PHPackages                             fruitware/bnm - 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. [API Development](/categories/api)
4. /
5. fruitware/bnm

ActiveLibrary[API Development](/categories/api)

fruitware/bnm
=============

Is a PHP library for bnm.md xml service

2.0(10y ago)114581MITPHPPHP &gt;=5.3.0

Since Nov 10Pushed 2y agoCompare

[ Source](https://github.com/Fruitware/bnm)[ Packagist](https://packagist.org/packages/fruitware/bnm)[ Docs](http://fruitware.ru/)[ RSS](/packages/fruitware-bnm/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (12)Used By (0)

\##BNM converter

Library uses National Bank of Moldova official gate to get currency rate within given date.

Installation via Composer
-------------------------

[](#installation-via-composer)

`composer require "fruitware/bnm" : "2.*"`

Examples
--------

[](#examples)

Basic usage with current date
-----------------------------

[](#basic-usage-with-current-date)

```
// init client
$cacheDir = '/tmp/bnm'; // not required
$client = new \Fruitware\Bnm\Client($cacheDir);

// get rates on a specific date
$rates = $client->get(new DateTime());

// exchange 100 USD to MDL
$exchange = $rates->exchange('USD', 100, 'MDL');

// exchange 1000000 MDL to USD
$exchange = $rates->exchange('MDL', 1000000, 'USD');

// exchange 50000 EUR to MDL
$exchange = $rates->exchange('EUR', 50000, 'MDL');
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~36 days

Recently: every ~75 days

Total

10

Last Release

3884d ago

Major Versions

1.2.2 → 2.02015-09-27

PHP version history (2 changes)1.0PHP &gt;=5.4.0

1.2PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0371db265a85312f31226b09e9c49e12d4eafe3d6d29acb6feb9cfde004b32df?d=identicon)[Fruitware](/maintainers/Fruitware)

---

Top Contributors

[![keriat](https://avatars.githubusercontent.com/u/538438?v=4)](https://github.com/keriat "keriat (14 commits)")[![RuSS-B](https://avatars.githubusercontent.com/u/3403762?v=4)](https://github.com/RuSS-B "RuSS-B (2 commits)")

---

Tags

bnmbnm.mdxml api

### Embed Badge

![Health badge](/badges/fruitware-bnm/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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