PHPackages                             moneyphp/money - 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. moneyphp/money

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

moneyphp/money
==============

PHP implementation of Fowler's Money pattern

v4.8.0(6mo ago)4.8k82.5M—1.5%443[4 issues](https://github.com/moneyphp/money/issues)[3 PRs](https://github.com/moneyphp/money/pulls)20MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Aug 3Pushed 6mo ago88 watchersCompare

[ Source](https://github.com/moneyphp/money)[ Packagist](https://packagist.org/packages/moneyphp/money)[ Docs](http://moneyphp.org)[ RSS](/packages/moneyphp-money/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (51)Used By (20)

Money
=====

[](#money)

[![Latest Version](https://camo.githubusercontent.com/1b4331304d05d33079ec71a0fa304bd0c7fe1eed40a5bce9c353e7f2fdc2118d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d6f6e65797068702f6d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://github.com/moneyphp/money/releases)[![GitHub Workflow Status](https://camo.githubusercontent.com/f0ef4cd8e19c74bd0034aaf4e1a85d054e58f8b1772d0a0d83d3294dd0e56e24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6e65797068702f6d6f6e65792f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f0ef4cd8e19c74bd0034aaf4e1a85d054e58f8b1772d0a0d83d3294dd0e56e24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6e65797068702f6d6f6e65792f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/c4d0a7b5f2caa0d7673235ced071cc15bab4670d75023fd87fd0fa794d050388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6e65797068702f6d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/moneyphp/money)

[![Email](https://camo.githubusercontent.com/26310f515fa2e81edf9b9b9534bb679f8ff2e146029c50e1550a292539c98022/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d406d6f6e65797068702e6f72672d626c75652e7376673f7374796c653d666c61742d737175617265)](mailto:team@moneyphp.org)

[![Money PHP](/resources/logo.png?raw=true)](/resources/logo.png?raw=true)

PHP library to make working with money safer, easier, and fun!

> "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. Since version 3.0 this library uses [strings internally](https://github.com/moneyphp/money/pull/136)in order to support unlimited integers.

```
