PHPackages                             abdulmajidcse/code-mask - 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. abdulmajidcse/code-mask

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

abdulmajidcse/code-mask
=======================

This is a simple PHP library that help you to manipulate your data.

v1.0.1(1y ago)1191MITPHPPHP ^7.4|^8.0

Since Jun 29Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Code Mask
=========

[](#code-mask)

This is a simple PHP library that help you to manipulate your data.

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

[](#installation)

```
composer require abdulmajidcse/code-mask

```

Usage
=====

[](#usage)

You'll see code example so that you can guess where you have to use it.

Hide String
-----------

[](#hide-string)

Sometimes, you need to hide phone, email or any other text with your special letter like 12\*\*\*\*90. For this type of tasks, you can follow below code sample.

```
use Abdulmajidcse\CodeMask\CodeMask;

$codeMask = new CodeMask();
$phoneNumber = "1234567890";
$hidePhoneNumber = $codeMask->hideString($phoneNumber, 2, 2);

echo $hidePhoneNumber; // output: 12******90

```

Generate ID
-----------

[](#generate-id)

Suppose, you have to generate an ID or any other string based ID with a special format. To do this, you can follow below code sample.

```
use Abdulmajidcse\CodeMask\CodeMask;

$codeMask = new CodeMask();
$id = $codeMask->generateId(123, 10, 0, '2701');

echo $id; // output: 27010000000123

```

Money Format
------------

[](#money-format)

Suppose, you have a number that need to format with your country money format. To do this, you can follow below code sample.

```
use Abdulmajidcse\CodeMask\CodeMask;

$codeMask = new CodeMask();

$moneyWithLeftCurrency = $codeMask->moneyFormat(100000000.556, 'TK');
echo $moneyWithLeftCurrency; // output: TK 10,00,00,000.56

$moneyWithRightCurrency = $codeMask->moneyFormat(100000000.556, '', 'BDT');
echo $moneyWithRightCurrency; // output: 10,00,00,000.56 BDT

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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 ~1 days

Total

2

Last Release

679d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbd728d582f98d2115f1a7aba57874034b9bfbe333b1b4831cfcd7e87e628edf?d=identicon)[abdulmajidcse](/maintainers/abdulmajidcse)

---

Top Contributors

[![abdulmajidcse](https://avatars.githubusercontent.com/u/43958759?v=4)](https://github.com/abdulmajidcse "abdulmajidcse (11 commits)")

---

Tags

phpCode Mask

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/abdulmajidcse-code-mask/health.svg)

```
[![Health](https://phpackages.com/badges/abdulmajidcse-code-mask/health.svg)](https://phpackages.com/packages/abdulmajidcse-code-mask)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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