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.

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


All versions of currency-converter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ixudra/curl Version 6.*
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 akibtanjim/currency-converter contains the following files

Loading the files please wait ....