PHPackages                             phlllpe/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. phlllpe/mask

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

phlllpe/mask
============

Mask to PHP

v2.1.0(3y ago)07342MITPHPPHP &gt;=5.5.0

Since Jun 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/phlllpe/mask)[ Packagist](https://packagist.org/packages/phlllpe/mask)[ Docs](https://github.com/phlllpe/mask)[ RSS](/packages/phlllpe-mask/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (26)Used By (0)

Mask
====

[](#mask)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9b77a550abc1edda1cb575eeb1ff65355a1a04cc5e36b11af3bfbfa1942673f4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686c6c6c70652f6d61736b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phlllpe/mask/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f0fd562de5c7faf8a62188eb15cf0dd8c4986efc55c8b897eb4c7c9032feea2a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686c6c6c70652f6d61736b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phlllpe/mask/?branch=master)[![Build Status](https://camo.githubusercontent.com/bedfd0bdd7b200b3bba3b3f1623933871d39c757973caf6ff52349fc7e2b311b/68747470733a2f2f7472617669732d63692e6f72672f70686c6c6c70652f6d61736b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phlllpe/mask)[![SensioLabsInsight](https://camo.githubusercontent.com/c9e9e6312ea14009db51e1cf1f8202992bf2caf69ba2931f07f64718b5995ce8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36306463353837352d323539632d343466322d616532322d3136613637393733663934312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/60dc5875-259c-44f2-ae22-16a67973f941)

- Mask

Install
-------

[](#install)

```
composer require phlllpe/mask
```

Usage
-----

[](#usage)

```
        use Mask\Predefined\Br\Cep;
        use Mask\Predefined\Br\Cpf;

        ...

        public function foo($cepValue)
        {
            ...
            $maskCep = (new Cep())->mask($cepValue)->toString();
            ...
        }

        public function bar($cpfValue)
        {
            ...
            echo (new Cpf())->mask($cpfValue);
            ...
        }
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~120 days

Recently: every ~613 days

Total

23

Last Release

1410d ago

Major Versions

0.5.0 → 1.0.02015-06-05

v1.0.12 → v2.0.02016-05-30

PHP version history (2 changes)0.1.0PHP &gt;=5.4.0

v2.0.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7872406?v=4)[Philipe Fernandes](/maintainers/phlllpe)[@phlllpe](https://github.com/phlllpe)

---

Top Contributors

[![phlllpe](https://avatars.githubusercontent.com/u/7872406?v=4)](https://github.com/phlllpe "phlllpe (8 commits)")

---

Tags

maskphp maskdisplay value with mask

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[robinherbots/jquery.inputmask

Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

6.5k284.5k4](/packages/robinherbots-jqueryinputmask)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147256.8k7](/packages/longman-ip-tools)[kartik-v/yii2-money

An advanced money mask input for Yii 2.0 based on jquery maskmoney plugin styled for Bootstrap 3.

29961.3k10](/packages/kartik-v-yii2-money)[andr-04/jquery.inputmask-multi

Inputmask Multi is a plugin which allows to select a mask of input basing on the beginning of entered data (such as an international phone number)

25310.1k1](/packages/andr-04-jqueryinputmask-multi)[ichhabrecht/mask-export

Export your mask elements as extension

45218.1k](/packages/ichhabrecht-mask-export)[igorescobar/jquery-mask-plugin

A jQuery Plugin to make masks on form fields and html elements.

11279.1k5](/packages/igorescobar-jquery-mask-plugin)

PHPackages © 2026

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