{"repo":"akaunting/laravel-money","free":true,"listed":false,"github":"https://github.com/akaunting/laravel-money","clone":"git clone https://github.com/akaunting/laravel-money.git","description":"Currency formatting and conversion package for Laravel","language":"PHP","stars":790,"topics":["php","laravel","money","currency","currency-converter","akaunting"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"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 (M","default_branch":null,"files":null,"tree":[],"storefront":"/r/akaunting","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akaunting/laravel-money/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}