Download the PHP package fortis/iso-currency without Composer
On this page you can find all versions of the php package fortis/iso-currency. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fortis/iso-currency
More information about fortis/iso-currency
Files in fortis/iso-currency
Package iso-currency
Short Description A PHP library providing ISO 4217 currencies. Work with currencies by the standard to avoid confusions.
License MIT
Homepage https://github.com/fortis/iso-currency
Informations about the package iso-currency
iso-currency
Very simple and easy-to-use Currency
class to work with ISO 4217 currencies as they provided by the official ISO Maintenance Agency
What is ISO 4217
ISO 4217 is a standard published by the International Organization for Standardization, which delineates currency designators, country codes (alpha and numeric), and references to minor units in three tables.
-- Wikipedia
Install
Install directly from command line using Composer
Use
Don't type currency codes as strings, instead it's better to use constants from auto generated CurrencyCode class as it's always up-to-date with currency-iso.org and helps you avoid typos.
For example, use CurrencyCode::USD
instead of 'USD'
. Autocomplete will make it easier.
Also you can create new currency object with Currency class and autocomplete: new Currency::USD()
.
License
iso-currency is licensed under the MIT license.
Source(s)
- "ISO 4217" by Wikipedia licensed under CC BY-SA 3.0 Unported License