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

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

azathoth/money
==============

PHP implementation of Fowler's Money pattern

1.2.2(11y ago)027MITPHPPHP &gt;=5.3.3

Since Aug 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/racinmat/money)[ Packagist](https://packagist.org/packages/azathoth/money)[ Docs](http://verraes.net/2011/04/fowler-money-pattern-in-php/)[ RSS](/packages/azathoth-money/feed)WikiDiscussions nextrelease Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

Money
=====

[](#money)

[![Build Status](https://camo.githubusercontent.com/188062f1632b82ce21771dc87c41fee22ef6f748ff9043dff0ba66c3bed1baca/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d617468696173766572726165732f6d6f6e65792e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/mathiasverraes/money)

PHP 5.3+ 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.

```
