PHPackages                             krepysh-spec/currency - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. krepysh-spec/currency

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

krepysh-spec/currency
=====================

World Currency list in PHP constants and array

1.0.1(4y ago)752712MITPHPPHP &gt;=7.4

Since Jun 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/krepysh-spec/currency)[ Packagist](https://packagist.org/packages/krepysh-spec/currency)[ RSS](/packages/krepysh-spec-currency/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (2)

Currency: A Currency listing library for PHP
============================================

[](#currency-a-currency-listing-library-for-php)

[![Build Status](https://camo.githubusercontent.com/54cc3b2f52c26c056d26fb66f3a5cb73dd541ddbfa2ae378f395462a9211dfed/68747470733a2f2f636972636c6563692e636f6d2f67682f6b7265707973682d737065632f63757272656e63792e7376673f7374796c653d736869656c64)](https://circleci.com/gh/krepysh-spec/currency)[![Latest Stable Version](https://camo.githubusercontent.com/b22c4f8487865406c53c35e345eccff826d54f9e0b7c9c5f3dbd8e43f36b1ab6/687474703a2f2f706f7365722e707567782e6f72672f6b7265707973682d737065632f63757272656e63792f76)](https://packagist.org/packages/krepysh-spec/currency)[![Total Downloads](https://camo.githubusercontent.com/073fe659a18d0422bd5b6c964f7f847186b4c3fa730c6bae4af410c776093f6d/687474703a2f2f706f7365722e707567782e6f72672f6b7265707973682d737065632f63757272656e63792f646f776e6c6f616473)](https://packagist.org/packages/krepysh-spec/currency)[![Latest Unstable Version](https://camo.githubusercontent.com/c3f1de803896b3476be694a16466db5a69e0fd31841224fa447e45d28a6fa2e9/687474703a2f2f706f7365722e707567782e6f72672f6b7265707973682d737065632f63757272656e63792f762f756e737461626c65)](https://packagist.org/packages/krepysh-spec/currency)[![License](https://camo.githubusercontent.com/a8113018fc68c135b1b11a04f9173ef3b923238e624afd3c6c75776f3287f6b4/687474703a2f2f706f7365722e707567782e6f72672f6b7265707973682d737065632f63757272656e63792f6c6963656e7365)](https://packagist.org/packages/krepysh-spec/currency)[![PHP Version Require](https://camo.githubusercontent.com/6d7a52e4c210cd68caa702597315aba524ffcbe7e741328d5888aa894771cc92/687474703a2f2f706f7365722e707567782e6f72672f6b7265707973682d737065632f63757272656e63792f726571756972652f706870)](https://packagist.org/packages/krepysh-spec/currency)

Get country code, symbol, and country name in your code the Currency library.

[![Alt Text](media/preview.gif)](media/preview.gif)

### Features

[](#features)

- List of all world currencies;
- Get country currency details with country code - ***countryName***, ***name***, ***symbol***;

### Installation

[](#installation)

Requirements:

- Composer

1. Install Currency with Composer

```
composer require krepysh-spec/currency
```

### Usage

[](#usage)

- Get currency code from constants:

```
echo KrepyshSpec\World\Currency::ANG; // >> 'ANG'
echo KrepyshSpec\World\Currency::USD; // >> 'USD'
echo KrepyshSpec\World\Currency::EUR; // >> 'EUR'
```

- Get all country currency details:

```
