Download the PHP package anish/maskable-entry without Composer
On this page you can find all versions of the php package anish/maskable-entry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anish/maskable-entry
More information about anish/maskable-entry
Files in anish/maskable-entry
Package maskable-entry
Short Description A powerful Filament PHP infolist component that enables seamless maskable entry. Features include maskable entry, preview functionality, and easy integration with Laravel. Perfect for maskable values in infolists.
License MIT
Homepage https://github.com/anishregminaglibang/maskable-entry
Informations about the package maskable-entry
Filament Maskable Entry
A reusable maskable entry component for Filament Infolists.
A powerful Filament PHP infolist component that enables seamless maskable entry. Ideal for hiding and toggling sensitive values such as passwords, social security numbers, credit card numbers, and API keys.
Features
- π Maskable Display β Hide sensitive data with custom mask patterns
- ποΈ Toggle Visibility β One click to reveal or hide the actual value
- π¨ Native Filament v4 & v5 Integration β Works like any infolist entry
- βοΈ Fully Configurable β Custom patterns, masking characters, closures
- π± Responsive β Works across all device sizes
Requirements
- PHP 8.1+
- Laravel 10+
- Filament 4.x or 5.x
Installation
The package auto-discovers its service providerβno manual setup required.
Basic Usage
Note:
If you are using a custom theme add the plugin's views to your theme css file or your app's css file.
Advanced Usage
Custom Mask Pattern
Using a Closure for Actual Value
Available Methods
maskValue(string $value)
The pattern shown in masked mode.
Use X (or your custom char) to represent masked digits.
actualValue(string|Closure|null $value)
Defines the value revealed on toggle.
Supports All Standard TextEntry Methods
How It Works
- Masked State β Displays the mask pattern (
XXX-XX-XXXX) - Toggle Button β Eye icon switches visibility
- Revealed State β Shows the actual value formatted
- Formatting β Automatically aligns characters to mask structure
Testing
Code Style
This package uses Laravel Pint:
Contributing
Contributions are welcome!
Development Setup
- Clone the repo
composer install- Create a new branch
- Write your feature
- Run tests & Pint
- Submit PR
Security
If you find a security issue, please email: [email protected]
Changelog
See CHANGELOG.
Credits
- Anish Regmi
- All Contributors
License
MIT
All versions of maskable-entry with dependencies
filament/filament Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.15.0