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

ActiveLibrary

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

Mask to PHP

v2.1.0(3y ago)06442MITPHPPHP &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 1mo ago

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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

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

1364d 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.5k276.6k4](/packages/robinherbots-jqueryinputmask)[mask/mask

Create your own content elements and page templates. Easy to use, even without programming skills because of the comfortable drag and drop user interface. Stored in structured database tables. Style your frontend with Fluid tags. Ideal, if you want to switch from Templavoila.

1391.6M10](/packages/mask-mask)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)[fuko-php/masked

Masks sensitive data: replaces blacklisted elements with redacted values

14094.5k](/packages/fuko-php-masked)[kartik-v/yii2-money

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

29915.4k10](/packages/kartik-v-yii2-money)[ichhabrecht/mask-export

Export your mask elements as extension

45215.8k](/packages/ichhabrecht-mask-export)

PHPackages © 2026

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