PHPackages                             infinitypaul/laravel-naira-exchange-rates - 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. infinitypaul/laravel-naira-exchange-rates

ActiveLibrary[API Development](/categories/api)

infinitypaul/laravel-naira-exchange-rates
=========================================

Foreign exchange rates API Against The Naira

0.0.7(6y ago)417MITPHPPHP &gt;=5.5.9

Since Mar 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/infinitypaul/laravel-naira-exchange-rates)[ Packagist](https://packagist.org/packages/infinitypaul/laravel-naira-exchange-rates)[ Docs](https://github.com/infinitypaul/laravel-naira-exchange-rates)[ RSS](/packages/infinitypaul-laravel-naira-exchange-rates/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Laravel Naira Exchange Rate API
===============================

[](#laravel-naira-exchange-rate-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3234ecdd2fb241644f405da735860390a65d03e9d675e4c9d5b3e06655adb1ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e66696e6974797061756c2f6c61726176656c2d6e616972612d65786368616e67652d72617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/infinitypaul/laravel-naira-exchange-rates)[![Build Status](https://camo.githubusercontent.com/43f2433c0863a11ee8a7e69563c691dd40aef8db808665e4b085beeeb610b00e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e66696e6974797061756c2f6c61726176656c2d6e616972612d65786368616e67652d72617465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/infinitypaul/laravel-naira-exchange-rates)[![Quality Score](https://camo.githubusercontent.com/5a71a7ccdf3a9fe41dc942089e7800bf6769c353700ad4b88807b147c573e5e7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e66696e6974797061756c2f6c61726176656c2d6e616972612d65786368616e67652d72617465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/infinitypaul/laravel-naira-exchange-rates)[![Total Downloads](https://camo.githubusercontent.com/f7fb98f43bd7fc28bed08dd7739f9d4359de9731def6f1bb5c86697ac9198943/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e66696e6974797061756c2f6c61726176656c2d6e616972612d65786368616e67652d72617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/infinitypaul/laravel-naira-exchange-rates)

Free Laravel Naira Exchange Rates API, which provides past or recent exchange rate lookups. It features a number of useful functions and can be installed easily using Composer..

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

[](#installation)

You can install the package via composer:

```
composer require infinitypaul/laravel-naira-exchange-rates
```

Usage
-----

[](#usage)

The Laravel Naira Currency Exchange API does require API keys in order to access and interrogate its API, Register and get your token on .

`Add NAIRA_ACCESS_TOKEN='Your Token' in your .env file with your token`

**Basic usage:**

Fetch the latest exchange rates

```
use Infinitypaul\LaravelNairaExchangeRates\NairaExchangeRates;

$rates  = NairaExchangeRates::setType('cbn')->fetch();
```

**Historical Data:**
Get historical rates for any day since 1999:

```
use Infinitypaul\LaravelNairaExchangeRates\NairaExchangeRates;
$rates  = NairaExchangeRates::setType('cbn')->addDateFrom('2019-11-26')->fetch();
```

**Fetch Specific Rate:**
If you do not want all current rates, it's possible to specify only the currencies you want

```
use Infinitypaul\LaravelNairaExchangeRates\NairaExchangeRates;
$rates  = NairaExchangeRates::setType('cbn')->setBaseCurrency('usd')->fetch();
```

### 4. API Reference:

[](#4-api-reference)

The following API reference lists the publicly-available methods for the

#### `NairaExchangeRatesAPI` Reference:

[](#nairaexchangeratesapi-reference)

`addDateFrom( string $from )`:
Set the date from which to retrieve historic rates. `$from` should be a string containing an ISO 8601 date.

`setType( string $to )`:
Set The Exchange Rate Type You Want To Retrieve, we have the following types

1. `cbn` Central Bank Of Nigeria Rate
2. `bdc` Burueu The Change Rate
3. `bank` Bank Rate
4. `moneygram` MoneyGram Rate
5. `westernunion` Western Union Rate

`addDateTo( string $type )`:
Set the end date for the retrieval of historic rates. `$to` should be a string containing an ISO 8601 date.

`setBaseCurrency( string $code )`:
Set the base currency you want to retrieve. `$code` should be passed an ISO 4217 code (e.g. `EUR`).
`$code` must be one of the supported currencies.

`fetch()`:
Send off the request to the API and return either a Json,

### 5. Supported Currencies:

[](#5-supported-currencies)

The library supports the following currencies USD, GBP, EUR, JPY, XAF, CNY, QAR, ZAR, SEK:

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Bug &amp; Features

[](#bug--features)

If you have spotted any bugs, or would like to request additional features from the library, please file an issue via the Issue Tracker on the project's Github page: [https://github.com/infinitypaul/naira-exchange-rates/issues](https://github.com/infinitypaul/laravel-naira-exchange-rates/issues).

How can I thank you?
--------------------

[](#how-can-i-thank-you)

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don't forget to [follow me on twitter](https://twitter.com/infinitypaul)!

Thanks!
Edward Paul.

License
-------

[](#license)

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

###  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

Maturity46

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

7

Last Release

2249d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15332137?v=4)[Paul Edward](/maintainers/infinitypaul)[@infinitypaul](https://github.com/infinitypaul)

---

Top Contributors

[![infinitypaul](https://avatars.githubusercontent.com/u/15332137?v=4)](https://github.com/infinitypaul "infinitypaul (17 commits)")

---

Tags

currency-converterexchange rateforexinfinitypaulnairanaira-exchange-rateslaravel-naira-exchange-rates

### Embed Badge

![Health badge](/badges/infinitypaul-laravel-naira-exchange-rates/health.svg)

```
[![Health](https://phpackages.com/badges/infinitypaul-laravel-naira-exchange-rates/health.svg)](https://phpackages.com/packages/infinitypaul-laravel-naira-exchange-rates)
```

###  Alternatives

[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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