PHPackages                             rupeshpoonia/gmail-phn-validation - 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. rupeshpoonia/gmail-phn-validation

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

rupeshpoonia/gmail-phn-validation
=================================

this is gmail-phn-validation

v1.0.0(2y ago)03MITPHP

Since Jun 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rupeshpoonia/gmail-phn-validation)[ Packagist](https://packagist.org/packages/rupeshpoonia/gmail-phn-validation)[ RSS](/packages/rupeshpoonia-gmail-phn-validation/feed)WikiDiscussions main Synced 1mo ago

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

```
# Gmail & Phone Number Validation Package

This package provides functionality for validating Gmail addresses and Indian phone numbers using the libphonenumber-for-php library and the Illuminate validation component.

## Features

- Email validation: Validates if an email address is in a valid format according to the FILTER_VALIDATE_EMAIL filter.
- Phone number validation: Validates if a phone number is a valid Indian number by utilizing the libphonenumber-for-php library.

## Requirements

- PHP 7.4 or higher
- giggsey/libphonenumber-for-php library
- illuminate/validation component

## Installation

You can install this package using Composer. Run the following command:

```bash
composer require rupeshpoonia/gmail-phn-validation

```

Usage
-----

[](#usage)

### Email Validation

[](#email-validation)

To validate an email address, use the `ValidEmail` class:

```
use rupeshpoonia\ValidEmail;

$email = 'test@example.com';
if (ValidEmail::validate('email', $email)) {
    echo 'Valid email address.';
} else {
    echo 'Invalid email address.';
}
```

### Phone Number Validation

[](#phone-number-validation)

To validate a phone number, use the `ValidPhoneNumber` class:

```
use rupeshpoonia\ValidPhoneNumber;

$phoneNumber = '+911234567890';
if (ValidPhoneNumber::validate('phone', $phoneNumber)) {
    echo 'Valid phone number.';
} else {
    echo 'Invalid phone number.';
}
```

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

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.

License
-------

[](#license)

This package is open-source and available under the MIT License. See the [LICENSE](LICENSE) file for more information.

```

You can customize and modify this README file to provide additional details or instructions specific to your package. Include information about installation, usage examples, contributing guidelines, and license details.

Remember to include any necessary links, such as the repository link, license file, and relevant documentation.

Feel free to adjust the README file as needed to accurately represent your package and provide useful information to potential users and contributors.

Let me know if you need further assistance or have any other questions!

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1051d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df56f2d975fc69b6687b22c896032226e8eca6d668c40198d04b178cfa6604a9?d=identicon)[Rupesh Poonia](/maintainers/Rupesh%20Poonia)

---

Top Contributors

[![rupeshpoonia](https://avatars.githubusercontent.com/u/96332896?v=4)](https://github.com/rupeshpoonia "rupeshpoonia (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rupeshpoonia-gmail-phn-validation/health.svg)

```
[![Health](https://phpackages.com/badges/rupeshpoonia-gmail-phn-validation/health.svg)](https://phpackages.com/packages/rupeshpoonia-gmail-phn-validation)
```

###  Alternatives

[propaganistas/laravel-phone

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

3.0k35.7M107](/packages/propaganistas-laravel-phone)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[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)

PHPackages © 2026

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