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.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rvc/maskercat
Requires
- php: ^7.4|8.*
This package is auto-updated.
Last update: 2025-12-25 08:18:21 UTC
README
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.
Installation
composer require rvc/maskercat
or just download and include the file in your project.
Usage
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 |
|
Mask use to concatenate | Optional |
| mask |
|
Side of the string to put the mask | Optional |
Example:
masker('Hakuna matata');
output: pgdfbiihakuna matata
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 |
|
Side of the string to put the mask | Optional |
Example:
custom_masker('Hakuna matata', 7, 'abcd453gh', 'right' );
output: `Hakuna matatab5gdccc`
License
maskercat is licensed under the MIT License.