omodingmike/uganda-phone-number-validator

This is my package uganda-phone-number-validator

Fund package maintenance!
omodingmike

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/omodingmike/uganda-phone-number-validator

1.0.0 2025-09-09 10:16 UTC

This package is auto-updated.

Last update: 2025-10-09 11:54:26 UTC


README

Latest Version on Packagist Tests Total Downloads

For validating and formatting ugandan phone numbers.

Installation

You can install the package via composer:

composer require omodingmike/uganda-phone-number-validator

Usage

 use OmodingMike\PhoneNumberValidator\Constants\PhoneNumberFormat;
 use OmodingMike\PhoneNumberValidator\PhoneNumberValidator;
 
 $phone = '0701234567';
 $isValid = PhoneNumberValidator::isValid($phone);

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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.