Registry / utility / moneyphp-money

moneyphp-money

JSON →
library4.9.0phppackagistunverified

PHP implementation of Fowler's Money pattern.

composer require moneyphp/money
INSTALL
IMPORT
SIG · MONEYPHP-MONEY
M
moneyphp-money
utilityphpv4.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Money
use Money\Money;

Create and add Money objects.

use Money\Money; $fiveEur = Money::EUR(500); $tenEur = Money::EUR(1000); $sum = $fiveEur->add($tenEur); echo $sum->getAmount(); // 1500
Debug
Known issues
gotchaAmounts are in smallest currency units (e.g., cents).
fix
Always use integers for amounts, not floats.
affects: *
Upgrade
Version history
4.9.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
moneyphp-money — pip install moneyphp-money · libregistry