Registry / utility / mathiasverraes-money

mathiasverraes-money

JSON →
library4.8.0phppackagistunverified

PHP implementation of Fowler's Money pattern

composer require mathiasverraes/money
INSTALL
IMPORT
SIG · MATHIASVERRAES-MON
M
mathiasverraes-money
utilityphpv4.8.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 a Money object representing $10.00 USD.

<?php require 'vendor/autoload.php'; use Money\Money; $money = Money::USD(1000); // $10.00 echo $money->getAmount();
Debug
Known issues
breakingVersion 4.x requires PHP 8.0+; older versions use PHP 7.x.
fix
Use version 3.x for PHP 7.x compatibility.
affects: >=4.0.0
Upgrade
Version history
4.8.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mathiasverraes-money — pip install mathiasverraes-money · libregistry