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.

dev-main 2023-09-25 02:54 UTC

This package is auto-updated.

Last update: 2024-08-25 05:17:44 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.

License: MIT

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:

Example:

masker('Hakuna matata');

output: pgdfbiihakuna matata

Custom masker

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

Options:

Example:

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

output: `Hakuna matatab5gdccc`

License

maskercat is licensed under the MIT License.