Download the PHP package akaunting/laravel-money without Composer
On this page you can find all versions of the php package akaunting/laravel-money. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-money
Currency formatting and conversion package for Laravel
This package intends to provide tools for formatting and conversion of monetary values in an easy, yet powerful way for Laravel projects.
Why not use the moneyphp
package?
Because it uses the intl
extension for number formatting. intl
extension isn't present by default on PHP installs and can give different results in different servers.
Getting Started
1. Install
Run the following command:
2. Publish
Publish config file.
3. Configure
You can change the currencies information of your app from config/money.php
file
Usage
Advanced
Helpers
Blade Directives
Blade Component
Same as the directive, there is also a blade
component for you to create money and currency in your views:
Macros
This package implements the Laravel Macroable
trait, allowing macros and mixins on both Money
and Currency
.
Example use case:
Macros can be called statically too:
Mixins
Along with Macros, Mixins are also supported. This allows merging another classes methods into the Money or Currency class.
Define the mixin class:
Register the mixin, by passing an instance of the class:
The methods from the custom class will be available:
Changelog
Please see Releases for more information on what has changed recently.
Contributing
Pull requests are more than welcome. You must follow the PSR coding standards.
Security
Please review our security policy on how to report security vulnerabilities.
Credits
- Denis Duliçi
- All Contributors
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of laravel-money with dependencies
illuminate/contracts Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/validation Version ^9.0|^10.0|^11.0
illuminate/view Version ^9.0|^10.0|^11.0
vlucas/phpdotenv Version ^5.4.1