PHPackages                             wemersonrv/input-mask - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wemersonrv/input-mask

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wemersonrv/input-mask
=====================

A Laravel Nova custom field text with masks on input

v0.1.2(7y ago)1196.4k↓14.3%4[2 issues](https://github.com/wemersonrv/input-mask/issues)GPL-3.0-or-laterVuePHP &gt;=7.1.0

Since May 16Pushed 5y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Nova Input Mask
===============

[](#nova-input-mask)

> Nova custom field text with masks.

[![Latest Version on Github](https://camo.githubusercontent.com/171487bd1bbbc941693eb4c71abe53ee69a35fc159c5e63360be4aaa0b679b07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f77656d6572736f6e72762f696e7075742d6d61736b2e7376673f7374796c653d666c6174)](https://packagist.org/packages/wemersonrv/input-mask)

Nova custom field text with masks. It uses `vue-the-mask` to implement mask directive to input field.

[![inputmask](https://user-images.githubusercontent.com/2028673/57864036-926d0800-77d1-11e9-9f04-79bce52509a7.png)](https://user-images.githubusercontent.com/2028673/57864036-926d0800-77d1-11e9-9f04-79bce52509a7.png)

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

[](#installation)

```
composer require wemersonrv/input-mask
```

Usage
-----

[](#usage)

Import it in your resources and add the InputMask to `fields` method.

```
use Wemersonrv\InputMask\InputMask;

public function fields(Request $request)
{
    return [
        ID::make('ID', 'id')->sortable(),
        Text::make('Name', 'name'),

        InputMask::make('CPF', 'cpf')
            ->mask('###.###.###-##')  // 111.222.333.44
            ->raw(),                  // 11122233344

    ];
}
```

### Methods

[](#methods)

This custom field has only two method:

- `mask('###...')` Implement the mask on your input field;
- `raw()` If you want to save your value without mask, just add this method.

TODO List
---------

[](#todo-list)

- Apply mask to index and detail fields
- Create a set of predefined custom fields from InputMask with validation
    - Brazilian CPF
    - Brazilian CNPJ
    - Brazilian Zip code (CEP)
    - Brazilian landline phone
    - Brazilian mobile phone with 9 digit

Release History
---------------

[](#release-history)

- 0.1.2
    - Fix license in `composer.json` from GPLv3 to *GPL-3.0-or-later*
- 0.1.1
    - Fix license in `composer.json` o GPLv3
- 0.1.0
    - The First Oficial release
    - CHANGE: Nothing important.
    - ADD: button badge for github release
- 0.0.1
    - Work in progress

References
----------

[](#references)

- Laravel Framework
    -
- Laravel Nova
    -
- Vue-the-Mask
    -

Meta
----

[](#meta)

Wemerson Guimarães – [@WemersonCG](https://twitter.com/WemersonCG) –

Distributed under the GPLv3 license. See [LICENSE.md](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~0 days

Total

4

Last Release

2559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04ac2c1e617785db3b326f05f60b2ee19e9b1748fba10b10c1700b6567ef09fa?d=identicon)[wemersonrv](/maintainers/wemersonrv)

---

Top Contributors

[![wemersonrv](https://avatars.githubusercontent.com/u/2028673?v=4)](https://github.com/wemersonrv "wemersonrv (9 commits)")[![kon3ko](https://avatars.githubusercontent.com/u/50349884?v=4)](https://github.com/kon3ko "kon3ko (4 commits)")[![murilolopes](https://avatars.githubusercontent.com/u/5649574?v=4)](https://github.com/murilolopes "murilolopes (1 commits)")

---

Tags

laravelfieldnovamask

### Embed Badge

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

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

###  Alternatives

[timothyasp/nova-color-field

A Laravel Nova Color Picker field.

781.6M5](/packages/timothyasp-nova-color-field)[alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field values.

461.0M2](/packages/alexwenzel-nova-dependency-container)[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[outhebox/nova-hidden-field

A Laravel Nova Hidden field.

33562.2k1](/packages/outhebox-nova-hidden-field)[sietse85/nova-button

(Nova 4+) A Laravel Nova package for adding buttons to your resources.

37347.3k](/packages/sietse85-nova-button)[nikaia/nova-rating-field

Add start rating field to Laravel Nova

42258.6k](/packages/nikaia-nova-rating-field)

PHPackages © 2026

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