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

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

paulpolidoro/mask
=================

Custom masks create for string

051PHP

Since Jul 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/paulpolidoro/composer)[ Packagist](https://packagist.org/packages/paulpolidoro/mask)[ RSS](/packages/paulpolidoro-mask/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

paulpolidoro/mask
=================

[](#paulpolidoromask)

Para criação de máscaras de CPF, CEP, Monetária, Telefone, etc

Composer install

```
composer require paulpolidoro/mask

```

or add on your composer.json file

How to use
----------

[](#how-to-use)

Applying default masks

```
// Formatando CEP
echo Mask::create(88888888, Mask::MASK_CEP);
// 88888-888

// Formatando TELEFONE
echo Mask::create(8888888888, Mask::MASK_TEL10);
// (88) 8888-8888

// Formatando CELULAR (9 dígitos)
echo Mask::create(888888888, Mask::MASK_TEL11);
// (88) 88888-8888
```

Creating custom masks

```
echo Mask::create(8888888888, "##.###-####.#");
// 88.888-8888.8

echo Mask::create(88888888, "##/##/##-##);
// 88/88/88-88
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c321c1fb5012e4780279299d5a0cca353abebb0b9676e335739bace89a48e04?d=identicon)[paulpolidoro](/maintainers/paulpolidoro)

---

Top Contributors

[![paulpolidoro](https://avatars.githubusercontent.com/u/19935973?v=4)](https://github.com/paulpolidoro "paulpolidoro (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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