Currency by AriaieBOY
CommunityCurrency formatting and conversion package.
Author:
AriaieBOY
Package health
Automated checks of this plugin's Composer package
15 checks
- Failed: GitHub Actions pinned to SHA — View details on Plumb
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No open Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Failed: Dependabot or Renovate configured — No dependency updater configuration found. View details on Plumb
- Skipped: Dependency update cooldown configured
- Passed: Provides a security policy
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Warning: Commit and release recency — Low activity: last commit 116 days ago; last release 181 days ago.
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Passed:
Current Laravel version supported
—
Package dependencies resolve together with current Laravel
13.0. -
Passed:
Current PHP version supported
—
Constraint
~8.2|~8.3|~8.4|~8.5supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
- Text Column (Table Builder)
- Summary (Table Builder)
- Text Entry (InfoLists)
- Text Input (Form Builder)
- Text Input Column (Table Builder)
- Installation
- Usage
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License
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:
composer require ariaieboy/filament-currency
You can publish the laravel-money config file with:
php artisan vendor:publish --tag=money
#Usage
\Filament\Tables\Columns\TextColumn::make('money')
->currency('USD');
\Filament\Tables\Columns\TextColumn::make('money')
->currency('USD')
->summarize(\Filament\Tables\Columns\Summarizers\Sum::make()->currency());
\Filament\Tables\Columns\TextColumn::make('money')
->currency('USD')
->summarize(\Filament\Tables\Columns\Summarizers\Average::make()->currency());
\Filament\Infolists\Components\TextEntry::make('money')
->currency('USD');
\Filament\Forms\Components\TextInput::make('money')
->currencyMask(thousandSeparator: ',',decimalSeparator: '.',precision: 2)
#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
#License
The MIT License (MIT). Please see License File for more information.
The author
From the same author
Jalali/Shamsi Support
This plugin adds Jalali/Shamsi Support to FilamentPHP.
Author:
AriaieBOY
Jalali DateTime
This plugin will add a Jalali DateTime Column for filament table builder.
Author:
AriaieBOY
Featured Plugins
A selection of plugins curated by the Filament team
Compact Theme
A theme that makes data-heavy panels easier to scan by fitting more useful information on each screen.
Filament
Soft Theme
A theme that gives panels a warm, approachable look with rounded shapes, gentle colors, and serif headings.
Filament
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight like Command Palette to your Filament Panel.
Dennis Koch