rvc/maskercat 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rvc/maskercat

Composer 安装命令:

composer require 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.

README 文档

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:

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 (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

maskercat is licensed under the MIT License.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-25