PHPackages                             ambrosethebuild/ghanaphonenumbervalidator - 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. ambrosethebuild/ghanaphonenumbervalidator

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

ambrosethebuild/ghanaphonenumbervalidator
=========================================

:A Laravel Package To Validate A Ghana Phone Number and Also Return the network it belongs to

1.0(6y ago)071MITPHPCI failing

Since Oct 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ambrosethebuild/GhanaPhoneNumberValidator)[ Packagist](https://packagist.org/packages/ambrosethebuild/ghanaphonenumbervalidator)[ RSS](/packages/ambrosethebuild-ghanaphonenumbervalidator/feed)WikiDiscussions master Synced 2mo ago

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

GhanaPhoneNumberValidator
=========================

[](#ghanaphonenumbervalidator)

A Laravel Package To Validate A Ghana Phone Number and Also Return the network the phone number belongs to.

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

[](#installation)

Via Composer

```
$ composer require ambrosethebuild/ghanaphonenumbervalidator
```

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

```
AmbroseTheBuild\GhanaPhoneNumberValidator\GhanaPhoneNumberValidatorServiceProvider::class
```

Usage
-----

[](#usage)

```
use AmbroseTheBuild\GhanaPhoneNumberValidator\GhanaPhoneNumberValidator;

class ViewController extends Controller
{
    //

    public function ghana_phone_validator( Request $request ){

        //method takes phone number
        return GhanaPhoneNumberValidator::isValidGhanaNumber( $request->number );
        return GhanaPhoneNumberValidator::whichNetwork( $request->number );

    }

}
```

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

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [author name](https://github.com/ambrosethebuild)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see the [license file](license.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

2405d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21016b164a582bd7c6070fa304d1c88b4b8a8a358c24d5ee6ac06f9b3196a43e?d=identicon)[ambrose0012](/maintainers/ambrose0012)

---

Top Contributors

[![ambrosethebuild](https://avatars.githubusercontent.com/u/11048468?v=4)](https://github.com/ambrosethebuild "ambrosethebuild (8 commits)")

---

Tags

laravelGhanaPhoneNumberValidatorGhana Laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ambrosethebuild-ghanaphonenumbervalidator/health.svg)

```
[![Health](https://phpackages.com/badges/ambrosethebuild-ghanaphonenumbervalidator/health.svg)](https://phpackages.com/packages/ambrosethebuild-ghanaphonenumbervalidator)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)

PHPackages © 2026

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