Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 445 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 445 Bytes

Show-me-the-money

Super slim Money class.

Facade

[
	'Money' => Billow\Utilities\Facades\Money::class,
];

Usage

[
	$money = new Money(10000);
	$money->amount() // 10000
	$money->convertedAmount() // '100.00'
	$money->fromString('100') // 10000
	$money->fromString('100')->amount() // 10000
	$money->fromString('100')->convertedAmount() // '100.00'
	$money->fromString('100')->asCurrency('R') // 'R 100.00'
];