PHPackages                             matmar10/msisdn-format-bundle - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. matmar10/msisdn-format-bundle

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

matmar10/msisdn-format-bundle
=============================

Symfony bundle for mobile phone number and msisdn validation based on country

0.0.1(12y ago)6183MITPHPPHP &gt;=5.3.3

Since Sep 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/matmar10/msisdn-format-bundle)[ Packagist](https://packagist.org/packages/matmar10/msisdn-format-bundle)[ RSS](/packages/matmar10-msisdn-format-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

msisdn-format-bundle
====================

[](#msisdn-format-bundle)

Build Status:

- Master: [![Build Status](https://camo.githubusercontent.com/179f0c10559f7528be5e72ccf590a635c36c7a268f769c8cabc0fe473cce37e7/687474703a2f2f63692e61736564696b2e636f6d2f6275696c645374617475732f69636f6e3f6a6f623d6d736973646e2d666f726d61742d62756e646c655f6d6173746572)](http://ci.asedik.com/job/msisdn-format-bundle_master/)
- Develop: [![Build Status](https://camo.githubusercontent.com/a0faac83166ab06c981fa17e1fd559c81bfbea24c945bb3279ee14e9f6381549/687474703a2f2f63692e61736564696b2e636f6d2f6275696c645374617475732f69636f6e3f6a6f623d6d736973646e2d666f726d61742d62756e646c655f646576656c6f70)](http://ci.asedik.com/job/msisdn-format-bundle_develop/)

A lightweight library to validate a msisdn (international representation of a mobile phone) which makes uses of Symfony2 validator

Updates
=======

[](#updates)

2. Open the country formats file located at: `vendor/lmh/bitcoin-by-mobile/src/Msisdn/Resources/config/msisdn-country-formats.xml`
3. Find the country code for the country you are launching
4. Verify the following attributes exist:
    - country prefix `prefix="XX"`
    - example mobile `exampleMobile="XX XX XX XX XX"`
    - national dialing prefix `nationalDialingPrefix="0"`
5. Modify the unit test to expect to be able to validate the msisdn by modifying `Tests/Fixtures/target-countries.yml`
6. Run the unit test: `./vendor/bin/phpunit`
7. Verify that the unit test passed; if not, check the format data including the regular expressions. This will require some googling. The test relies on known valid msisdns
8. Once the test is passing, commit and push your changes. Tag a new release version
9. Update the bitcoinbymobile project dependency version to correspond to your tagged release verison of the msisdn-format-bundle

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

4409d ago

### Community

Maintainers

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

---

Top Contributors

[![matmar10](https://avatars.githubusercontent.com/u/19975?v=4)](https://github.com/matmar10 "matmar10 (22 commits)")[![skilbjo](https://avatars.githubusercontent.com/u/1145927?v=4)](https://github.com/skilbjo "skilbjo (8 commits)")

---

Tags

regexmobilevalidateregular expressionconstraintregexpmsisdn

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matmar10-msisdn-format-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/matmar10-msisdn-format-bundle/health.svg)](https://phpackages.com/packages/matmar10-msisdn-format-bundle)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M416](/packages/giggsey-libphonenumber-for-php)[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.3M30](/packages/wixel-gump)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8412.9M47](/packages/giggsey-libphonenumber-for-php-lite)[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.3M](/packages/barbieswimcrew-zip-code-validator)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)

PHPackages © 2026

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