Download the PHP package ariaieboy/filament-currency without Composer
On this page you can find all versions of the php package ariaieboy/filament-currency. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ariaieboy/filament-currency
More information about ariaieboy/filament-currency
Files in ariaieboy/filament-currency
Package filament-currency
Short Description Bring back laravel-money formatter for Filament Text Column
License MIT
Homepage https://github.com/ariaieboy/filament-currency
Informations about the package filament-currency
Filament Currency formatting and conversion package
This package provides some macros for TextColumn, TextEntry and summerizer Average and Sum to format the money values using the laravel-money.
We also provide a currencyMask() method for TextInput and TextInputColumn to mask your numbers in front-end and return the plain number to back-end.
Text Column (Table Builder)
A new currency(string | Closure $currency = null, bool $shouldConvert = false) method to the TextColumn that uses the laravel-money to format currencies.
Summary (Table Builder)
The summarizer classes Summarizer, Sum and Average contains the method currency(string | Closure $currency = null, bool $shouldConvert = false) to display the value in the configured currency format.
Text Entry (InfoLists)
A new currency(string | Closure $currency = null, bool $shouldConvert = false) method to the TextEntry
Text Input (Form Builder)
We also have a currencyMask() method for TextInput that lets you mask your numbers in front-end and return the plain number to back-end.
Text Input Column (Table Builder)
We also have a currencyMask() method for TextInputColumn that lets you mask your numbers in front-end and return the plain number to back-end.
By using this package you can configure the formatter using laravel-money config.
For example, you can customize the symbol, symbol_first, decimal_mark, and thousands_separator for each currency. Or if you want you can add your custom currency to the config and use it in the currency() method instead of standard money.
Installation
You can install the package via Composer:
You can publish the laravel-money config file with:
Usage
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- AriaieBOY
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-currency with dependencies
akaunting/laravel-money Version ^6
filament/tables Version ^5.0
illuminate/contracts Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.15.0