π΅ Laravel Money is an open source package that provides you a convinient way to work with numbers from database with high precision and use them as monetary objects. With this package, you can easily operate, compare, format, and even convert monetary objects to other currencies using external API providers.
- PHP:
^8.1 guzzlehttp/guzzle:^7.5bcmathextension
composer require postscripton/laravel-money Publish the config file through:
php artisan vendor:publish --provider=PostScription\Money\MoneyServiceProvideror
php artisan vendor:publish --tag=moneyAfter all, the config file at config/money.php should be modified for your own purposes.
- β° Quick start
- β Usage
- π¨οΈ Formatting
- π² Currencies
- π΅ Money
- π² Currency
- Static methods
- Object methods
- Getters
- Calculations
- Object manipulations
- Logical operations
- Converting to string
- Converting currencies
- API rate exchangers
Laravel-money is an open-source library under the MIT license.
