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 3d 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 43% 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

1476d ago

Major Versions

v0.1.0 → v1.0.02022-04-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e0734c8c63344b635e9a731ebe5c0061908d50071eece14b62ff143abbecc97?d=identicon)[sachinkiranti](/maintainers/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

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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