PHPackages                             tiitoo/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. tiitoo/input-mask-bundle

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

tiitoo/input-mask-bundle
========================

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

1.2.0(7y ago)08MITPHPPHP &gt;=5.6

Since Jan 16Pushed 6y agoCompare

[ Source](https://github.com/TiiToo/InputMaskBundle)[ Packagist](https://packagist.org/packages/tiitoo/input-mask-bundle)[ RSS](/packages/tiitoo-input-mask-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (6)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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

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 ~189 days

Total

5

Last Release

2649d ago

PHP version history (2 changes)1.0PHP &gt;=5.5

1.2.0PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4389101?v=4)[TiiToo](/maintainers/TiiToo)[@TiiToo](https://github.com/TiiToo)

---

Top Contributors

[![pierre-vassoilles](https://avatars.githubusercontent.com/u/6613517?v=4)](https://github.com/pierre-vassoilles "pierre-vassoilles (2 commits)")[![TiiToo](https://avatars.githubusercontent.com/u/4389101?v=4)](https://github.com/TiiToo "TiiToo (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tiitoo-input-mask-bundle/health.svg)](https://phpackages.com/packages/tiitoo-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)
