PHPackages                             adsmurai/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. adsmurai/currency

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

adsmurai/currency
=================

A small library to handle currencies and money values

6.0.0(4mo ago)4542.1k↓48.1%3[3 issues](https://github.com/Adsmurai/Currency/issues)MITPHPPHP &gt;=8.4

Since Apr 5Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/Adsmurai/Currency)[ Packagist](https://packagist.org/packages/adsmurai/currency)[ RSS](/packages/adsmurai-currency/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (39)Used By (0)

Adsmurai Currency Library
=========================

[](#adsmurai-currency-library)

[![Build Status](https://camo.githubusercontent.com/dd23f1aa0ec3031038b4321ba89b900e0a3776f431f5c82f9a7d00f4a8c6d08e/68747470733a2f2f7472617669732d63692e6f72672f4164736d757261692f43757272656e63792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Adsmurai/Currency)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/589ac7a4ccb13e4972fdd22831b03abc535381ccacb03e84833958c7497158d6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4164736d757261692f43757272656e63792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Adsmurai/Currency/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/3926493b91003b13928ee0a90170c034b1d35b3e2926a10cae75ba32bc6506e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4164736d757261692f43757272656e63792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Adsmurai/Currency/?branch=master)

Introduction
------------

[](#introduction)

The Adsmurai Currency library has been developed to solve some currency and architecture related problems:

- Currency data centralization
- Values encapsulation
- Representation
- Extra precision to represent very small currency amounts.
- Conversions

Setup
-----

[](#setup)

Install it through composer, that's it:

```
composer require adsmurai/currency
```

Code examples
-------------

[](#code-examples)

```
