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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky