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

ActiveLibrary[API Development](/categories/api)

neputertech/nrb-forex-api
=========================

Fetch Nepal Rastra Bank Forex Api

144PHP

Since May 19Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-nrbforexapi)

The `neputertech/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 neputertech/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' => [
    // ...
    NeputerTech\NrbForexApi\NrbForexApiServiceProvider::class,
];
```

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

```
'aliases' => [
    // ...
    NeputerTech\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 `NeputerTech\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(\NeputerTech\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(\NeputerTech\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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ea0a698c3687f308c16e4181171f5d412753a6a4a4917e00898ddc51928bb76?d=identicon)[735l4](/maintainers/735l4)

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

---

Top Contributors

[![sachinkiranti](https://avatars.githubusercontent.com/u/32116270?v=4)](https://github.com/sachinkiranti "sachinkiranti (5 commits)")[![pratibimba-neputer](https://avatars.githubusercontent.com/u/117072418?v=4)](https://github.com/pratibimba-neputer "pratibimba-neputer (4 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/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)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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