PHPackages                             wishva/sri\_lanka\_mobile\_number\_validator - 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. wishva/sri\_lanka\_mobile\_number\_validator

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

wishva/sri\_lanka\_mobile\_number\_validator
============================================

Used regular expression with PHP to validate the number. Take a look and you will understand

1.0(4y ago)04MITPHP

Since Feb 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Wishva/Sri_Lanka_Mobile_Number_validator)[ Packagist](https://packagist.org/packages/wishva/sri_lanka_mobile_number_validator)[ RSS](/packages/wishva-sri-lanka-mobile-number-validator/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

 Sri lankan mobile phone number validator
==========================================

[](#-sri-lankan-mobile-phone-number-validator-)

version 1.0

This code is made to validate Sri Lankan mobile phone numbers and you can use this in your forms

You can use this regular expression with other languages as well here it has used with PHP

##### Install this as a composer package 👇

[](#install-this-as-a-composer-package-)

composer require wishva/sri\_lanka\_mobile\_number\_validator

##### Sample code

[](#sample-code)

"&lt;?php

use MobileNumberValidation\\MobileNumberValidator;

include\_once 'vendor/autoload.php';

$numberValidateObj = new MobileNumberValidator();

if($numberValidateObj-&gt;mobileValidatorFunction("xxxxxxxxxx")) //xxxxxxxxxx - 10 digits mobile number

{

```
echo "yes";

```

}else{

```
echo "no";

```

} "

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

1631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f833fc1793d20f4083f9a42fbf00a81d126c5b3efe855e53e0fedcf542d00c0?d=identicon)[Wishva](/maintainers/Wishva)

---

Top Contributors

[![Wishva](https://avatars.githubusercontent.com/u/45891071?v=4)](https://github.com/Wishva "Wishva (3 commits)")

### Embed Badge

![Health badge](/badges/wishva-sri-lanka-mobile-number-validator/health.svg)

```
[![Health](https://phpackages.com/badges/wishva-sri-lanka-mobile-number-validator/health.svg)](https://phpackages.com/packages/wishva-sri-lanka-mobile-number-validator)
```

###  Alternatives

[toplan/laravel-sms

A mobile phone number validation solution based on laravel

83580.2k2](/packages/toplan-laravel-sms)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[udokmeci/yii2-phone-validator

Modern Yii2 Phone validator wrapper on top of PhoneNumberUtil library also used by Android devices

36227.5k1](/packages/udokmeci-yii2-phone-validator)[snowcap/vat-validation

EU VAT number validation

10112.3k](/packages/snowcap-vat-validation)

PHPackages © 2026

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