PHPackages                             kaistaerk/input-mask-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. kaistaerk/input-mask-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

kaistaerk/input-mask-bundle
===========================

A simple Symfony bundle that implements Form classes for RobinHerbots/Inputmask jQuery plugin

1.0.1(3y ago)02681MITPHPPHP &gt;=5.6

Since Dec 16Pushed 3y agoCompare

[ Source](https://github.com/kaistaerk/InputMaskBundle)[ Packagist](https://packagist.org/packages/kaistaerk/input-mask-bundle)[ RSS](/packages/kaistaerk-input-mask-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

InputMaskBundle
===============

[](#inputmaskbundle)

A simple Symfony bundle that implements Form classes for RobinHerbots/Inputmask jQuery plugin.

Installation
------------

[](#installation)

Install with composer :

```
composer require it/input-mask-bundle
```

### Enable the bundle in your project (only for Symfony 2-3. Sf4 does it automatically)

[](#enable-the-bundle-in-your-project-only-for-symfony-2-3-sf4-does-it-automatically)

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new IT\InputMaskBundle\ITInputMaskBundle(),
        // ...
    );
}
```

Config
------

[](#config)

### Symfony 2-3 method

[](#symfony-2-3-method)

Add the following line to your `config.yml` :

```
# app/config/config.yml

twig:
    form_themes:
        - 'ITInputMaskBundle:Form:inputMaskFields.html.twig'
```

### Symfony 4 method

[](#symfony-4-method)

```
# config/packages/input_mask.yml
# Or in config/packages/twig.yml

twig:
    form_themes:
        - '@ITInputMask/Form/inputMaskFields.html.twig'
```

Usage
-----

[](#usage)

You can use these types in your Symfony forms :

```
    // Will result of a single_widget date picker
    use IT\InputMaskBundle\Form\Type\DateMaskType;
    use IT\InputMaskBundle\Form\Type\EmailMaskType;
    use IT\InputMaskBundle\Form\Type\UrlMaskType;
    //...
    $builder
        ->add('birthdate', DateMaskType::class, array(
            'label' => 'Date of birth',
        ))
        ->add('email', EmailMaskType::class, array(
            'label' => 'Email field',
        ))
        ->add('url', UrlMaskType::class, array(
            'label' => 'Url field',
        ))
    ;
```

OR

```
    // Will result of a text widget with the format "[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}"
    use IT\InputMaskBundle\Form\Type\TextMaskType;
    //...
    $builder
        ->add('phone', TextMaskType::class, array(
            'label' => 'Phone number',
            'mask' => '99.99.99.99.99'
        ))
    ;
```

OR with regex type

```
    // Will result of a text widget with the format "[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}"
    use IT\InputMaskBundle\Form\Type\TextMaskType;
    //...
    $builder
        ->add('phone', RegexMaskType::class, array(
            'label' => 'Phone number',
            'regex' => '[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}'
        ))
    ;
```

For the "mask" config, please refer to the RobinHerbots/Inputmask documentation : or

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1242d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25e6cae9cef23ce4a90e5c43e55d1df53c3207020e04a398f7b76872acaf5b95?d=identicon)[kaistaerk](/maintainers/kaistaerk)

---

Top Contributors

[![kaistaerk](https://avatars.githubusercontent.com/u/12458850?v=4)](https://github.com/kaistaerk "kaistaerk (3 commits)")[![pierre-vassoilles](https://avatars.githubusercontent.com/u/6613517?v=4)](https://github.com/pierre-vassoilles "pierre-vassoilles (3 commits)")[![damienalexandre](https://avatars.githubusercontent.com/u/225704?v=4)](https://github.com/damienalexandre "damienalexandre (1 commits)")

### Embed Badge

![Health badge](/badges/kaistaerk-input-mask-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kaistaerk-input-mask-bundle/health.svg)](https://phpackages.com/packages/kaistaerk-input-mask-bundle)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M315](/packages/twig-extra-bundle)[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1635.6M72](/packages/symfony-ux-live-component)[twig/html-extra

A Twig extension for HTML

777.6M41](/packages/twig-html-extra)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
