PHPackages                             mader12/phone-formatted - 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. mader12/phone-formatted

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

mader12/phone-formatted
=======================

The package for return formatted phone number of user's mask given from ten numbers which is in the DB table.

05PHP

Since Jun 18Pushed 6y agoCompare

[ Source](https://github.com/mader12/phone-formatted)[ Packagist](https://packagist.org/packages/mader12/phone-formatted)[ RSS](/packages/mader12-phone-formatted/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Install
=======

[](#install)

composer require "mader12/phone-formatted @dev"

USE
===

[](#use)

use phoneformatted\\PhoneFormatted;

PhoneFormatted::masked($phonenumber, $mask, $region);

OR
==

[](#or)

\\phoneformatted\\PhoneFormatted::masked($phonenumber, $mask, $region);

Example
=======

[](#example)

PhoneFormatted::masked('1234567890', "###-###-##-##"); //return +7 123-456-78-90

PhoneFormatted::masked('1234567890', "(###) ###-##-##", '+341'); //return +341 (123) 456-78-90

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![mader12](https://avatars.githubusercontent.com/u/9870340?v=4)](https://github.com/mader12 "mader12 (6 commits)")

### Embed Badge

![Health badge](/badges/mader12-phone-formatted/health.svg)

```
[![Health](https://phpackages.com/badges/mader12-phone-formatted/health.svg)](https://phpackages.com/packages/mader12-phone-formatted)
```

###  Alternatives

[nzedb/nzedb

A Usenet Indexer

6415.4k](/packages/nzedb-nzedb)[carica/io

Non blocking I/O for PHP

241.1k4](/packages/carica-io)

PHPackages © 2026

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