Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Calculator Laravel Package

ariefng/filament-calculator

A Filament plugin that adds a simple calculator tool to your admin panel. Useful for quick calculations while managing data, with easy installation and seamless integration into Filament pages and resources.

View on GitHub
Deep Wiki
Context7
v1.2.1

fixed the calculator action click handler with $wire. so the action mounts correctly outside modal-triggered contexts

v1.2.0

Filament Calculator v1.2.0

✨ What's New

  • Field Value Preloading: Calculator now preloads the current field value when reopened, with configurable fallback via initial_value config ('field' or 0).
  • Repeater Compatibility: Fixed bug where calculator failed to insert values into TextInput fields inside Repeater components.
  • Safer Evaluation: Replaced eval() with a custom parser for secure expression evaluation.
  • Enhanced UI: Updated calculator layout to 4x5 buttons with improved display stack.
  • Locale Support: Added decimal_separator config for locale-aware number formatting.

🔧 Configuration

New config options in config/filament-calculator.php:

  • initial_value: 'field' (default) or 0
  • decimal_separator: '.' (default) or ','

🐛 Bug Fixes

  • Corrected input targeting in Repeater fields to insert into the originating input.
  • Improved origin input capture for reliable modal behavior.

📚 Documentation

  • Updated README with new features and config examples.
  • Added CHANGELOG entries for v1.2.0.

🧪 Testing

  • All tests pass (6/6) with 57 assertions.
  • Added tests for repeater support and config options.

Full changelog: CHANGELOG.md
Installation: See the README for setup instructions.

v1.1.0

Changed

  • Removed Dependabot configuration from the repository
  • Focused the package on Filament panel forms and Filament 4/5 support
  • Added configurable operator_buttons.color
  • Changed calculator operator and evaluate buttons to use gray by default
  • Kept long expressions inside the calculator display without overflowing
  • Added guidance for using overlayParentActions() when the calculator is used inside another modal
  • Updated README visuals to use filament-calculator-plugin.webp as the main image and moved the GIF into the usage example section

Internal

  • Removed an unused test provider from the package test bootstrap
  • Verified the package test suite passes
v1.0.0

Initial release of Filament Calculator.

Features

  • Calculator modal action
  • Works with Filament TextInput
  • Supports Filament Admin Panel

Full Changelog: https://github.com/ariefng/filament-calculator/commits/v1.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle