PHPackages                             wallacemaxters/masker - 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. wallacemaxters/masker

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

wallacemaxters/masker
=====================

String masker similar to Vanilla Masker, but in PHP

0.1.1(1y ago)084MITPHPPHP ^8.1

Since Apr 21Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

WallaceMaxters/Masker
=====================

[](#wallacemaxtersmasker)

[![](https://github.com/wallacemaxters/masker/actions/workflows/php.yml/badge.svg)](https://github.com/wallacemaxters/masker/actions/workflows/php.yml/badge.svg)

This library helpers your to format the texts or numbers with simple masks.

Instalation:

For installation, your need to use php in 8.1, 8.2 or 8.3 version.

```
composer require wallacemaxters/masker
```

Basic Usage:

```
use WallaceMaxters\Masker\Masker;

$masker = new Masker();

$masker->mask('31995451199', '(00) 00000-0000'); // '(31) 99545-1199'
// or
$masker('31995451199', '(00) 00000-0000'); // '(31) 99545-1199'
```

You can format texts with any character.

```
$masker->mask('ABC12345', '[AAA]_(00000)'); // '[ABC]_(12345)'
```

If need, you can return the unmasked value of `string`.

```
$masker->unmask('[ABC]_(12345)', '[AAA]_(00000)'); // 'ABC12345'
```

The `dynamic` method allows to pass many masks as parameters. This allows that your string are formatted according with size.

```
$cpf_or_cnpj = ['000.000.000-00', '00.000.000/0000-00'];

$masker->dynamic('45522248327', $cpf_or_cnpj); // '455.222.483-27'

$masker->dynamic('68544172000160', $cpf_or_cnpj); // '68.544.172/0001-60'
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

###  Release Activity

Cadence

Every ~53 days

Total

2

Last Release

695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/983cda3e30a5a58d250f3bef7360267e0185b46e891f2f08e6683d0af9a9ddc7?d=identicon)[wallacemaxters](/maintainers/wallacemaxters)

---

Top Contributors

[![wallacemaxters](https://avatars.githubusercontent.com/u/5245865?v=4)](https://github.com/wallacemaxters "wallacemaxters (13 commits)")

---

Tags

formattermaskphpstringunmask

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wallacemaxters-masker/health.svg)

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

PHPackages © 2026

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