Currency conversion Using Google API in PHP

Spread the love

sometime we want to show the current price of foreign currency in our webiste,app or blog.For this we can use google.As You know we use google for search but google also provide Currency Converter API for converting currency to our desired currency.You can use Google’s currency converter to convert currency.If you want to use this functionality in your application then i am going to tell you “How to use google currency converter ?”.

Below is complete PHP currency converter script using Google API which have a function currencyConverter($from_Currency,$to_Currency,$amount) with three parameters. The first parameter is $from_Currency, the second is $to_Currency means the currency in which it is converted. And third parameter is $amount that will be passed for conversion.

PHP Function

Call Function

Tip : You can check currency codes HERE

Download Code

Hope it will Help You and please subscribe me and like my facebook page :

and make me proud.By the way if you face any problem then let me know in comment section below

Leave a Reply

Your email address will not be published. Required fields are marked *