PHPackages                             sachinkiranti/nrb-forex-api - 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. sachinkiranti/nrb-forex-api

ActiveLibrary[API Development](/categories/api)

sachinkiranti/nrb-forex-api
===========================

Fetch Nepal Rastra Bank Forex Api

v1.0.0(4y ago)264MITPHPPHP ^7.3|^8.0|^8.1

Since Apr 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sachinkiranti/nrb-forex-api)[ Packagist](https://packagist.org/packages/sachinkiranti/nrb-forex-api)[ RSS](/packages/sachinkiranti-nrb-forex-api/feed)WikiDiscussions main Synced 3w ago

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

Laravel NrbForexApi
===================

[](#laravel-nrbforexapi)

The `sachinkiranti/nrb-forex-api` package provides easy access to the forex rate fixed by Nepal Rastra Bank for different countries to Nepali Rupees(NPR).

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

[](#installation)

Installation is straightforward, setup is similar to every other Laravel Packages.

#### 1. Install via Composer

[](#1-install-via-composer)

Begin by pulling in the package through Composer:

```
composer require sachinkiranti/nrb-forex-api

```

#### 2. Define the Service Provider and alias

[](#2-define-the-service-provider-and-alias)

**Note:** This package supports the new auto discovery features of `Laravel >=5.5`, so if you are working on a `Laravel >=5.5` project, then your installation is complete, you can skip to step 3.

Add manually the service provider in your `config/app.php` file :

```
'providers' => [
    // ...
    SachinKiranti\NrbForexApi\NrbForexApiServiceProvider::class,
];
```

Add manually the facade in your `config/app.php` file :

```
'aliases' => [
    // ...
    SachinKiranti\NrbForexApi\Facades\NrbForexApi::class,
];
```

#### 3. Publish Config File

[](#3-publish-config-file)

To generate a config file type this command into your terminal:

```
php artisan vendor:publish --tag=nrb-forex-api

```

Usage
-----

[](#usage)

Using the `NrbForexApi` package, it's quite easy to get the current rate's.

We have the `SachinKiranti\NrbForexApi\NrbForexISO3` for ISO3 list of constants to be used.

### Using with facade

[](#using-with-facade)

- Getting the current rate for US Dollar to Nepali Rupees :

```
 NrbForexApi::to(\SachinKiranti\NrbForexApi\NrbForexISO3::US_DOLLAR)->convert(5);
 // Outputs : (Right now, US Dollar per unit === 122.24 NRS)
 611.2
```

### Using with helpers

[](#using-with-helpers)

- Getting the current rate for Indian Rupees to Nepali Rupees :

```
 nrb_forex_convert(\SachinKiranti\NrbForexApi\NrbForexISO3::INDIAN_RUPEE, 100)
 // Outputs : (Right now, Indian ruppee per 100 unit === 160 NRS)
 160
```

### TODO

[](#todo)

- Get the list of rates for all available currencies provided by *Nepal Rastra Bank*
- More flexible Api

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

1530d ago

Major Versions

v0.1.0 → v1.0.02022-04-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32116270?v=4)[Sachin Rai](/maintainers/sachinkiranti)[@sachinkiranti](https://github.com/sachinkiranti)

---

Top Contributors

[![sachinkiranti](https://avatars.githubusercontent.com/u/32116270?v=4)](https://github.com/sachinkiranti "sachinkiranti (6 commits)")

---

Tags

laravelnepalnrbnrbforexlaravelforexnepalnrb

### Embed Badge

![Health badge](/badges/sachinkiranti-nrb-forex-api/health.svg)

```
[![Health](https://phpackages.com/badges/sachinkiranti-nrb-forex-api/health.svg)](https://phpackages.com/packages/sachinkiranti-nrb-forex-api)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6279.6k5](/packages/riclep-laravel-storyblok)

PHPackages © 2026

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