PHPMaker Input Mask Extension

Original price was: $25.00.Current price is: $15.00.

The Input Mask extension for PHPMaker allows users to apply input masks to form fields, enhancing data entry accuracy and user experience. This extension integrates the Inputmask library, enabling seamless masking for phone numbers, emails, IP addresses, currency formats, and more.

demo : link  | user: admin | password: master

Description

Features

  • Supports all mask and option configurations from the Inputmask package.
  • Allows applying masks to any input field via Advanced Settings in PHPMaker.
  • Enhances form validation by enforcing specific input formats.
  • Works with various formats including:
    • Thousand separator (currency, numbers)
    • Phone numbers
    • Email addresses
    • IP addresses
    • Custom masks
  • Compatible with PHPMaker 2024 and later.

How It Works

  1. Users specify the mask and options in the Advanced Settings of the PHPMaker extension.
  2. The mask and options follow the configuration documented in Inputmask Documentation.
  3. The extension applies the configured masks to the specified input fields at runtime.

Installation

  1. Enable the Input Mask extension in PHPMaker.
  2. Configure the mask and options for desired fields in the Advanced Settings.
  3. Regenerate your project to apply changes.

Configuration

In the Advanced Settings, define the mask and options for any field:

Example Configurations

Field TypeOptions (JSON Format)
Email{"alias": "email"}
Phone{"mask": "(999) 999-9999"}
IP Address{"alias": "ip"}
Date{"alias": "datetime", "inputFormat": "yyyy/MM/dd", "outputFormat": "yyyyMMdd"}
Time{"alias": "datetime", "inputFormat": "HH:MM:ss", "outputFormat": "HH:MM:ss"}
Credit Card{"mask": "9999 9999 9999 9999"}
Currency{"alias": "currency", "prefix":"$"}
National ID{"mask": "999999-999"}
Passport{"mask": "AA9999999"}
License Plate{"mask": "AA9 99A"}
Mac Address{"alias": "mac"}
URL{"alias": "url"}
Bank IBAN{"mask": "AA99 9999 9999 9999 9999 99"}
TIN{"mask": "999-99-9999"}
Serial Number{"mask": "9999-9999"}
Coordinates{"mask": "[-]99.999999, [-]999.999999"}
Promo Code{"mask": "PROMO-AAAAAA99"}
Hex Color{"alias": "numeric", "mask": "#HHHHHH", "definitions": {"H": { "validator": "[0-9A-Fa-f]" }}}
Bitcoin Address{"mask": "*", "greedy": true, "repeat": 34, "maxlength": 34}

For more advanced configurations, refer to the Inputmask Documentation.

Requirements

  • PHPMaker 2024 or later
Go to Top