PHPackages                             apichef/sl-phone-number - 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. apichef/sl-phone-number

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

apichef/sl-phone-number
=======================

Simple package to validate Sri Lankan phone numbers.

0.1.2(5y ago)213MITPHPPHP ~7.2

Since Aug 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/apichef/sl-phone-number)[ Packagist](https://packagist.org/packages/apichef/sl-phone-number)[ Docs](https://github.com/apichef/sl-phone-number)[ RSS](/packages/apichef-sl-phone-number/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

sl-phone-number
===============

[](#sl-phone-number)

[![Latest Version on Packagist](https://camo.githubusercontent.com/67e1b5a5e48a831ccda81f6c2dc9af0dceb2d04fe989b01a1671aa85909054c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617069636865662f736c2d70686f6e652d6e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apichef/sl-phone-number)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7f58f711d003af5d4c9e0587a542a7118bfef57206ff2fbdc25bdb7a06e16558/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617069636865662f736c2d70686f6e652d6e756d6265722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/apichef/sl-phone-number)[![Coverage Status](https://camo.githubusercontent.com/fa8d74f225be5b9e243f6e4bd6978abec064a28cf8cab4a8f0ffbc185cda1854/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f617069636865662f736c2d70686f6e652d6e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/apichef/sl-phone-number/code-structure)[![Quality Score](https://camo.githubusercontent.com/8edfd114c21e88098e4dad2ed5d25d6de4faa9f49f08c3fe0a9b15f912ba17d1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617069636865662f736c2d70686f6e652d6e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/apichef/sl-phone-number)[![Total Downloads](https://camo.githubusercontent.com/650ae39f1fa217271bea81de4a86aa1bce87a311fb16e2917b866c7b3a1d84af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617069636865662f736c2d70686f6e652d6e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apichef/sl-phone-number)

Simple package to validate Sri Lankan phone numbers.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
bin/
build/
docs/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require apichef/sl-phone-number
```

Usage
-----

[](#usage)

```
$skeleton = new APiChef\SlPhoneNumber();
echo $skeleton->echoPhrase('Hello, League!');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Milroy .E Fraser](https://github.com/milroyfraser)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

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

Every ~9 days

Total

2

Last Release

2081d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f3ba1935044647e51c405868792beea05a76250a8f7ef408c9b706edf51fcb6?d=identicon)[milroy.me](/maintainers/milroy.me)

---

Top Contributors

[![milroyfraser](https://avatars.githubusercontent.com/u/3282475?v=4)](https://github.com/milroyfraser "milroyfraser (14 commits)")[![nimnaherath](https://avatars.githubusercontent.com/u/73551247?v=4)](https://github.com/nimnaherath "nimnaherath (2 commits)")

---

Tags

apichefsl-phone-number

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/apichef-sl-phone-number/health.svg)

```
[![Health](https://phpackages.com/badges/apichef-sl-phone-number/health.svg)](https://phpackages.com/packages/apichef-sl-phone-number)
```

###  Alternatives

[webmozart/assert

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

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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