Download the PHP package akibtanjim/currency-converter without Composer
On this page you can find all versions of the php package akibtanjim/currency-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akibtanjim/currency-converter
More information about akibtanjim/currency-converter
Files in akibtanjim/currency-converter
Package currency-converter
Short Description This package provides currency rates as well as single and multiple currency for Laravel app by using https://openexchangerates.org API
License MIT
Informations about the package currency-converter
Laravel Currency Converter
This package is built for laravel with a view to get the currency rates and convert single and multiple currency to another currency. This uses https://openexchangerates.org for fetching rates. This package supports 170 currencies.
There are 4 types of plan in open exchange rate. By using free plan and it's api key one would only be able to get rates/convert currency based on USD. So the suggestion is to use any of other 3 plan and it's api key.
Installation
Install using composer:
In Laravel 5.5 or higher, this package will be automatically discovered and you can safely skip the following two steps.
If using Laravel 5.4 or lower, after updating composer, add the ServiceProvider to the providers array in
In the providers section add the below line:
add the Alias to aliases section of config/app.php:
Example
Open command prompt and wrtie the following command:
Now paste the following code:
In your paste the following code.
Now open your file and paste the follwing code:
Open command prompt and run:
Sample Response of Getting Rates (http://127.0.0.1:8000/rates)
Sample Response of Single Currency Conversion (http://127.0.0.1:8000/convert/single)
Sample Response of Multiple Currency Conversion (http://127.0.0.1:8000/convert/multiple)
Sample Error Response
For More Error info visit here
Supported Currency and their shortcode
Currency Name | Short Code |
---|---|
UAE Dirham | AED |
Afghani | AFN |
Lek | ALL |
Armenian Dram | AMD |
Netherlands Antillan Guilder | ANG |
Kwanza | AOA |
Argentine Peso | ARS |
Australian Dollar | AUD |
Aruban Guilder | AWG |
Azerbaijan Manat | AZN |
Convertible Mark | BAM |
Barbados Dollar | BBD |
Taka | BDT |
Bulgarian Lev | BGN |
Bahraini Dinar | BHD |
Colombian Peso | COP |
Costa Rican Colón | CRC |
Cuban Convertible Peso | CUC |
Cuban Peso | CUP |
Cape Verde Escudo | CVE |
Czech Koruna | CZK |
Djibouti Franc | DJF |
Faroese Króna | DKK |
Dominican Peso | DOP |
Algerian Dinar | DZD |
Egyptian Pound | EGP |
Nakfa | ERN |
Ethiopian Birr | ETB |
Euro | EUR |
Fiji Dollar | FJD |
Falkland Islands Pound | FKP |
Pound Sterling | GBP |
Lari | GEL |
Guernsey Pound | GGP |
Ghanaian Cedi | GHS |
Gibraltar Pound | GIP |
Dalasi | GMD |
Guinea Franc | GNF |
Quetzal | GTQ |
Guyana Dollar | GYD |
Hong Kong Dollar | HKD |
Lempira | HNL |
Croatian Kuna | HRK |
Haitian Gourde | HTG |
Forint | HUF |
Rupiah | IDR |
New Israeli Sheqel | ILS |
Isle of Man Pound | IMP |
Indian Rupee | INR |
Iraqi Dinar | IQD |
Iranian Rial | IRR |
Iceland Krona | ISK |
Moroccan Dirham | MAD |
Moldovan Leu | MDL |
Malagasy ariary | MGA |
Macedonian Denar | MKD |
Kyat | MMK |
Tugrik | MNT |
Macanese Pataca | MOP |
Ouguiya | MRO |
Mauritanian Ouguiya | MRU |
Mauritius Rupee | MUR |
Rufiyaa | MVR |
Kwacha | MWK |
Mexican Peso | MXN |
Malaysian Ringgit | MYR |
Mozambican Metical | MZN |
Namibia Dollar | NAD |
Naira | NGN |
Cordoba Oro | NIO |
Norwegian Krone | NOK |
Nepalese Rupee | NPR |
New Zealand Dollar | NZD |
Rial Omani | OMR |
Balboa | PAB |
Nuevo Sol | PEN |
Kina | PGK |
Philippine Peso | PHP |
Pakistan Rupee | PKR |
Zloty | PLN |
Guarani | PYG |
Qatari Rial | QAR |
Romanian leu | RON |
Serbian Dinar | RSD |
Russian Ruble | RUB |
Rwanda Franc | RWF |
Saudi Riyal | SAR |
Solomon Islands Dollar | SBD |
Seychelles Rupee | SCR |
Sudanese Dinar | SDG |
Swedish Krona | SEK |
Singapore Dollar | SGD |
Saint Helena Pound | SHP |
Leone | SLL |
Somali Shilling | SOS |
Surinamese Dollar | SRD |
Urdu | SSP |
Dobra | STD |
Tomean Dobra | STN |
Salvadoran Colón | SVC |
Syrian Pound | SYP |
Lilangeni | SZL |
Thai Baht | THB |
Somoni | TJS |
Turkmenistani Manat | TMT |
Tunisian Dinar | TND |
Paʻanga | TOP |
Yeni Türk Liras | TRY |
Trinidad and Tobago Dollar | TTD |
New Taiwan Dollar | TWD |
Tanzanian Shilling | TZS |
Hryvnia | UAH |
Uganda Shilling | UGX |
US Dollar | USD |
Peso Uruguayo | UYU |
Uzbekistan Sum | UZS |
Venezuelan Bolívar | VEF |
Vietnamese Dong | VND |
Vatu | VUV |
Samoan Tala | WST |
Central Africa CFA franc | XAF |
Silver (troy ounce) | XAG |
Gold (troy ounce) | XAU |
East Caribbean Dollar | XCD |
Special Drawing Rights | XDR |
West African CFA franc | XOF |
Palladium Ounce | XPD |
CFP Franc | XPF |
Platinum Ounce | XPT |
Yemeni Rial | YER |
Rand | ZAR |
Zambian Kwacha | ZMW |
Zimbabwean Dollar | ZWL |
Authors
- Akib Tanjim - akibtanjim
- Alveee - Alveee