PHPackages                             owndeveloper/number-massking - 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. owndeveloper/number-massking

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

owndeveloper/number-massking
============================

this is simple number masking

1.0.0(2y ago)05MITPHP

Since Jun 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Vijaydass/Number-Mask)[ Packagist](https://packagist.org/packages/owndeveloper/number-massking)[ RSS](/packages/owndeveloper-number-massking/feed)WikiDiscussions master Synced 1mo ago

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

Number-Mask
===========

[](#number-mask)

[![Latest Stable Version](https://camo.githubusercontent.com/90e56d9380003a51da3b0e92aeaeff9f1b61001d7f9ed28ca89dc730af55a367/68747470733a2f2f706f7365722e707567782e6f72672f76696a6179646173732f6e756d6265722d6d61736b2f762f737461626c65)](https://packagist.org/packages/vijaydass/number-mask)[![License](https://camo.githubusercontent.com/cefe07c44cbe89f8b15d6a24338527860ff65fa4dfe8d71001f295fc84020a3a/68747470733a2f2f706f7365722e707567782e6f72672f76696a6179646173732f6e756d6265722d6d61736b2f6c6963656e7365)](https://packagist.org/packages/vijaydass/number-mask)

Description
-----------

[](#description)

Number-Mask is a lightweight PHP library that provides functionality for masking or obfuscating numbers. It allows you to format numbers in a desired pattern while retaining the original digits.

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

[](#installation)

You can install this package via Composer:

```
composer require owndeveloper/number-massking

## Usage

### Initializing the Package
To use the package, you need to first initialize it and provide the number and format:

```php
use OwnDeveloper\NumberMask;

require "./vendor/autoload.php";
$numberMask = new NumberMask();
```

### Example Usage

[](#example-usage)

Here's an example of how you can use the package to calculate the GST amount:

```
try {
    $number = $numberMask->masking('9876543210','987-6543-210');
    echo "Masked Number: ". $number;
} catch (\Exception $e) {
    echo $e->getMessage();
}
```

### Exception Handling

[](#exception-handling)

The package handles exceptions for invalid values. If the value passed to the `masking()` method is character, an exception will be thrown. You can catch the exception and handle it accordingly.

Testing
-------

[](#testing)

The package comes with a set of unit tests to ensure its stability and functionality. You can run the tests using the following command:

```
vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please create an issue in the \[[issue tracker](https://github.com/Vijaydass/Number-Mask/issues/new)\]. If you'd like to contribute code, please follow these guidelines:

1. Fork the repository.
2. Create a new branch for your feature/bug fix.
3. Commit your changes and push them to your branch.
4. Submit a pull request.

Please ensure that your code adheres to the existing coding style and is well-documented.

License
-------

[](#license)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

1044d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ede4770e023f8c156aef0cd209730d3d87ab94a8d895a3c60b04ec5596e856a?d=identicon)[Vijaydass](/maintainers/Vijaydass)

---

Top Contributors

[![Vijaydass](https://avatars.githubusercontent.com/u/33311085?v=4)](https://github.com/Vijaydass "Vijaydass (3 commits)")[![vijay-codepaper](https://avatars.githubusercontent.com/u/128605635?v=4)](https://github.com/vijay-codepaper "vijay-codepaper (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/owndeveloper-number-massking/health.svg)

```
[![Health](https://phpackages.com/badges/owndeveloper-number-massking/health.svg)](https://phpackages.com/packages/owndeveloper-number-massking)
```

###  Alternatives

[spatie/unit-conversions

Perform unit conversions in PHP

363.5k](/packages/spatie-unit-conversions)[devaly/wordpress-routes

Manage rewrites and routes in WordPress with this dead-simple plugin

101.2k](/packages/devaly-wordpress-routes)

PHPackages © 2026

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