PHPackages                             rvc/maskercat - 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. rvc/maskercat

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

rvc/maskercat
=============

Concatenate a set of pre-define or custom character, strings or patterns to an given String, resulting in a mask of characters in the front, back, or both sides of the input.

01PHP

Since Sep 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vcruly/maskercat)[ Packagist](https://packagist.org/packages/rvc/maskercat)[ RSS](/packages/rvc-maskercat/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

maskercat - Custom string concatenation mask
============================================

[](#maskercat---custom-string-concatenation-mask)

Concatenate a set of pre-define or custom character, strings or patterns to an given String, resulting in a mask of characters in the front, back, or both sides of the input.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

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

[](#installation)

`composer require rvc/maskercat`

or just download and include the file in your project.

Usage
-----

[](#usage)

### Simple masker

[](#simple-masker)

`masker (String string, int lenght, int mask, String side);`

Options:

   Parameter Values Description Optional     string  The string to concatenate Require   lenght 7 **(DEFAULT)** Lenght of the mask use to concatenate Optional   mask - 0 - abcdefghijklmnopqrstuvwxyz **(DEFAULT)**
- 1 - ABCDEFGHIJKLMNOPQRSTUVWXYZ
- 2 - 0123456789abcdefghijklmnopqrstuvwxyz
- 3 - 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
- 4 - 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz

  Mask use to concatenate Optional   mask - left **(DEFAULT)**
- right
- both

  Side of the string to put the mask Optional  Example:

```
masker('Hakuna matata');

output: pgdfbiihakuna matata

```

---

### Custom masker

[](#custom-masker)

`custom_masker (String string, int lenght, String mask, String side)`

Options:

   Parameter Values Description Optional     string  The string to concatenate Require   lenght  Lenght of the mask use to concatenate Require   mask  Mask use to concatenate Require   side - left **(DEFAULT)**
- right
- both

  Side of the string to put the mask Optional  Example:

```
custom_masker('Hakuna matata', 7, 'abcd453gh', 'right' );

output: `Hakuna matatab5gdccc`

```

License
-------

[](#license)

maskercat is licensed under the MIT License.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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/9f0b146e311f4eedb19a25fa6969eae37953069e828100fe897917038cc66bb7?d=identicon)[vcruly](/maintainers/vcruly)

---

Top Contributors

[![vcruly](https://avatars.githubusercontent.com/u/99045522?v=4)](https://github.com/vcruly "vcruly (22 commits)")

---

Tags

concatenationmaskingmit-licenseopen-sourcephppure-phpstringstring-manipulationstrings

### Embed Badge

![Health badge](/badges/rvc-maskercat/health.svg)

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

###  Alternatives

[phpcr/phpcr-migrations

Migrations for PHPCR

421.4M2](/packages/phpcr-phpcr-migrations)

PHPackages © 2026

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