billowapp / show-me-the-money by warrenhansen

Super simple money class for laravel and we mean simple.
24,310
7
2
Package Data
Maintainer Username: warrenhansen
Maintainer Contact: warren@billow.co.za (Warren Hansen)
Package Create Date: 2016-10-03
Package Last Update: 2024-04-09
Language: PHP
License: MIT
Last Refreshed: 2024-11-28 03:00:03
Package Statistics
Total Downloads: 24,310
Monthly Downloads: 533
Daily Downloads: 20
Total Stars: 7
Total Watchers: 2
Total Forks: 12
Total Open Issues: 2

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