PHPackages                             persian-validator/mobile - 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. persian-validator/mobile

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

persian-validator/mobile
========================

Validates mobile numbers in Iran

1.0.0(7y ago)3161[1 issues](https://github.com/Ali-kh333/persianValidator/issues)MITPHP

Since Jul 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Ali-kh333/persianValidator)[ Packagist](https://packagist.org/packages/persian-validator/mobile)[ RSS](/packages/persian-validator-mobile/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Persian Mobile Validator
------------------------

[](#persian-mobile-validator)

A simple class to validate mobile numbers in Iran.

Install
-------

[](#install)

Via Composer

```
$ composer require persian-validator/mobile
```

Usage
-----

[](#usage)

Instantiate the class

```
$mobile = Mobile::make('0912000000');
```

Returns Boolean

```
$mobile->isValid();
```

Returns Boolean

```
$mobile->notValid();
```

Retruns Boolean

```
$moile->isIrancell();
```

Reruns the operator for the number

```
$mobile->operator();
```

If it's Hamrah aval, it returns the province for it. like Tehran, Isfahan ...

```
$mobile->province();
```

If mobile is valid returns nothing but if it's not valid Exception is thrown!

```
$mobile->validate();
```

---

**License**This library is released under the [MIT license](https://github.com/symfony/polyfill-mbstring/blob/master/LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

2875d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04e597c467f016a8f510f3a98ed6966b57bcf18a45e379ae50aeb38f1edcc21f?d=identicon)[Ali-kh333](/maintainers/Ali-kh333)

---

Tags

laravelvalidatormobile

### Embed Badge

![Health badge](/badges/persian-validator-mobile/health.svg)

```
[![Health](https://phpackages.com/badges/persian-validator-mobile/health.svg)](https://phpackages.com/packages/persian-validator-mobile)
```

###  Alternatives

[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[laravel-validation-rules/phone

Validate that a phone number is in the correct format

69355.5k](/packages/laravel-validation-rules-phone)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[laravel-validation-rules/us-state

Validate US States and Canada Provinces

16172.7k](/packages/laravel-validation-rules-us-state)[laravel-validation-rules/timezone

Validate that a given timezone is valid.

2119.0k](/packages/laravel-validation-rules-timezone)

PHPackages © 2026

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