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

ActiveLibrary

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 3d ago

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

1535d 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)
```

PHPackages © 2026

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