bijondev/ratesapi

this will convert your cutrrency to any cutrrency

Maintainers

Package info

github.com/bijondev/RatesApi

pkg:composer/bijondev/ratesapi

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

dev-master 2019-07-24 12:29 UTC

This package is auto-updated.

Last update: 2026-02-25 11:07:05 UTC


README

Install

composer require bijondev/ratesapi

To gate Current rate

        $getrate=new Ratesapi();
        $pram=array(
                'currency'=>array('USD', 'GBP', 'INR'),
                'base'=>'INR'
        );
        $result= $getrate->getLatestRate($pram);

        echo "<pre>";
        print_r($result);

Gate rate By Date

        $getrate=new Ratesapi();
        $pram=array(
                'currency'=>array('USD', 'GBP', 'INR'),
                'base'=>'INR'
        );
        $result= $getrate->getRateByDate('2019-07-25', $pram);

        echo "<pre>";
        print_r($result);

This is using api https://ratesapi.io/documentation/