PHPackages                             jomweb/ringgit - 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. jomweb/ringgit

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

jomweb/ringgit
==============

Malaysia Ringgit implementation on top of Money PHP

v3.1.0(2y ago)30182.3k↓38%101MITPHPPHP &gt;=8.0.0 &lt;8.4.0

Since Oct 3Pushed 2y ago5 watchersCompare

[ Source](https://github.com/jomweb/ringgit)[ Packagist](https://packagist.org/packages/jomweb/ringgit)[ GitHub Sponsors](https://github.com/crynobone)[ Fund](https://liberapay.com/crynobone)[ RSS](/packages/jomweb-ringgit/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (26)Used By (1)

Malaysia Ringgit implementation on top of Money PHP
===================================================

[](#malaysia-ringgit-implementation-on-top-of-money-php)

[![tests](https://github.com/jomweb/ringgit/workflows/tests/badge.svg?branch=3.x)](https://github.com/jomweb/ringgit/actions?query=workflow%3Atests+branch%3A3.x)[![Latest Stable Version](https://camo.githubusercontent.com/0a0f2f0d1b21300b8f745240d520784764ec75fc05df3c0ce7098dace54498c4/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f72696e676769742f762f737461626c65)](https://packagist.org/packages/jomweb/ringgit)[![Total Downloads](https://camo.githubusercontent.com/0ec4c5baede7514a351352ae297d5c53532821eb3d170a3c03e5ff13fa873bae/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f72696e676769742f646f776e6c6f616473)](https://packagist.org/packages/jomweb/ringgit)[![Latest Unstable Version](https://camo.githubusercontent.com/28d4b39dbd194a914f22c9783cc19d30f53d1b22f39c2fecc380766d066d6381/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f72696e676769742f762f756e737461626c65)](https://packagist.org/packages/jomweb/ringgit)[![License](https://camo.githubusercontent.com/54a02b4bcb0587b09c23e6fbab96294f44e1674ab5b59a884fef6d006118a215/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6d7765622f72696e676769742f6c6963656e7365)](https://packagist.org/packages/jomweb/ringgit)[![Coverage Status](https://camo.githubusercontent.com/5f2f163632c1a3ceb863b6f562321e07b169eb667f78bf498b2daf456ca8cc4b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a6f6d7765622f72696e676769742f62616467652e7376673f6272616e63683d332e78)](https://coveralls.io/github/jomweb/ringgit?branch=3.x)

PHP 8.0+ library to make working with money safer, easier, and fun for Malaysia Ringgit!

> "If I had a dime for every time I've seen someone use FLOAT to store currency, I'd have $999.997634" -- [Bill Karwin](https://twitter.com/billkarwin/status/347561901460447232)

In short: You shouldn't represent monetary values by a float. Wherever you need to represent money, use this Money value object.

```
