cms-token/@core/vendor/billowapp/show-me-the-money
mincreng1 062c41b4d3 Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00
..
src Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00
.gitignore Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00
LICENSE.md Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00
README.md Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00
composer.json Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00
composer.lock Initial commit: add CMS Launchpad module 2025-04-25 10:11:30 +07:00

README.md

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'
];