Download the PHP package infinitypaul/naira-exchange-rates without Composer

On this page you can find all versions of the php package infinitypaul/naira-exchange-rates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package naira-exchange-rates

Naira ExchangeRatesAPI - Naira Currency Exchange Rates API SDK

Latest Version on Packagist Build Status Quality Score Total Downloads

Free 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

You can install the package via composer:

Alternatively, you can download all files from the src/ directory and include them in your project. Important note: if you're manually installing the SDK, you must also install Guzzle Client.

Usage

The Naira Currency Exchange API does require API keys or authentication in order to access and interrogate its API, Register and get your token on http://nairaexchangerate.herokuapp.com/.

Basic usage:

Fetch the latest exchange rates

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

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

4. API Reference:

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

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 currency codes.

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

5. Supported Currencies:

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

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

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.

Credits

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!

Thanks!
Edward Paul.

License

The MIT License (MIT). Please see License File for more information.


All versions of naira-exchange-rates with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.6.0
guzzlehttp/guzzle Version ^6.5
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package infinitypaul/naira-exchange-rates contains the following files

Loading the files please wait ....