PHPackages                             omodingmike/uganda-phone-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. omodingmike/uganda-phone-number-validator

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

omodingmike/uganda-phone-number-validator
=========================================

This is my package uganda-phone-number-validator

1.0.0(8mo ago)00[3 PRs](https://github.com/omodingmike/uganda-phone-number-validator/pulls)MITPHPPHP ^8.1CI passing

Since Sep 9Pushed 1mo agoCompare

[ Source](https://github.com/omodingmike/uganda-phone-number-validator)[ Packagist](https://packagist.org/packages/omodingmike/uganda-phone-number-validator)[ Docs](https://github.com/omodingmike/uganda-phone-number-validator)[ GitHub Sponsors](https://github.com/omodingmike)[ RSS](/packages/omodingmike-uganda-phone-number-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

uganda-phone-number-validator
=============================

[](#uganda-phone-number-validator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a9fec4aa5259c2323b7db9cb70811c919b9376879ea51337610686fbc994ce76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d6f64696e676d696b652f7567616e64612d70686f6e652d6e756d6265722d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omodingmike/uganda-phone-number-validator)[![Tests](https://camo.githubusercontent.com/c6ffcd42936659dcdb5090cf3bc34ab59e91ac06e8c3bdf3cb9c90f8cc6ed0e8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6d6f64696e676d696b652f7567616e64612d70686f6e652d6e756d6265722d76616c696461746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/omodingmike/uganda-phone-number-validator/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/e159ee5022805f3429e36bd117230b987c2f58b8c43652befd7023a1ae46125f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d6f64696e676d696b652f7567616e64612d70686f6e652d6e756d6265722d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omodingmike/uganda-phone-number-validator)

For validating and formatting ugandan phone numbers.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require omodingmike/uganda-phone-number-validator
```

Usage
-----

[](#usage)

```
 use OmodingMike\PhoneNumberValidator\Constants\PhoneNumberFormat;
 use OmodingMike\PhoneNumberValidator\PhoneNumberValidator;

 $phone = '0701234567';
 $isValid = PhoneNumberValidator::isValid($phone);

 $formatted = PhoneNumberValidator::format($phone,PhoneNumberFormat::E164)
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [omodingmike](https://github.com/omodingmike)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance84

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

242d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/613b05178f6366f041b41137f922b5ce95971b6be7e1f769f51c2cde6cbc07a6?d=identicon)[omodingmike](/maintainers/omodingmike)

---

Top Contributors

[![omodingmike](https://avatars.githubusercontent.com/u/49742163?v=4)](https://github.com/omodingmike "omodingmike (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

omodingmikeuganda-phone-number-validator

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/omodingmike-uganda-phone-number-validator/health.svg)

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

###  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)
