Registry / utility / sebastian-money

sebastian-money

JSON →
library1.6.2phppackagistunverified

Value Object that represents a monetary value using a currency's smallest unit.

composer require sebastian/money
INSTALL
IMPORT
SIG · SEBASTIAN-MONEY
S
sebastian-money
utilityphpv1.6.2
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 SebastianBergmann\Money\Money;

Create a Money object from a string and output the amount.

use SebastianBergmann\Money\Money; $money = Money::fromString('100', 'USD'); echo $money->getAmount();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
sebastian-money — pip install sebastian-money · libregistry