PHPackages                             tagmood/laravel-disposable-phone - 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. tagmood/laravel-disposable-phone

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

tagmood/laravel-disposable-phone
================================

Disposable phone validator

3.0.60(2mo ago)04521MITPHPPHP ^7.1|^8.0CI passing

Since Mar 17Pushed 2w agoCompare

[ Source](https://github.com/tagmood/Laravel-Disposable-Phone)[ Packagist](https://packagist.org/packages/tagmood/laravel-disposable-phone)[ RSS](/packages/tagmood-laravel-disposable-phone/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (45)Versions (93)Used By (0)

Laravel Disposable Phone
========================

[](#laravel-disposable-phone)

Adds a validator to Laravel for checking whether a given phone number isn't originating from disposable phone services. Uses the disposable numbers blacklist from [iP1SMS/disposable-phone-numbers](https://github.com/iP1SMS/disposable-phone-numbers) by default.

### Installation

[](#installation)

1. Run the Composer require command to install the package:

    ```
    composer require tagmood/laravel-disposable-phone
    ```
2. If you don't use auto-discovery, open up your app config and add the Service Provider to the `$providers` array:

    ```
    'providers' => [
       ...

       Tagmood\LaravelDisposablePhone\DisposablePhoneServiceProvider::class,
    ],
    ```
3. Publish the configuration file and adapt the configuration as desired:

    ```
    php artisan vendor:publish --tag=laravel-disposable-phone
    ```
4. Run the following artisan command to fetch an up-to-date list of disposable numbers:

    ```
    php artisan disposablephone:update
    ```
5. (optional) In your languages directory, add for each language an extra language line for the validator:

    ```
    'indisposablephone' => 'Disposable phone numbers are not allowed.',
    ```
6. (optional) It's highly advised to update the disposable numbers list regularly. You can either run the command yourself now and then or, if you make use of Laravel's scheduler, include it over there (`App\Console\Kernel`):

    ```
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('disposablephone:update')->weekly();
    }
    ```

### Usage

[](#usage)

Use the `indisposablephone` validator to ensure a given field doesn't hold a disposable phone number.

```
'field' => 'indisposablephone',
```

### Custom fetches

[](#custom-fetches)

By default the package retrieves a new list by using `file_get_contents()`. If your application has different needs (e.g. when behind a proxy) please review the `disposable-phone.fetcher` configuration value.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance91

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 51.2% 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

Every ~33 days

Total

91

Last Release

80d ago

Major Versions

1.0.1 → 2.0.02018-05-13

2.1.7 → 3.0.02021-08-30

PHP version history (4 changes)1.0.0PHP &gt;=7.0

2.0.4PHP &gt;=7.1

2.0.13PHP &gt;=7.1|^8.0

2.0.14PHP ^7.1|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54882223?v=4)[TAGMOOD](/maintainers/tagmood)[@tagmood](https://github.com/tagmood)

---

Top Contributors

[![tagmood](https://avatars.githubusercontent.com/u/54882223?v=4)](https://github.com/tagmood "tagmood (65 commits)")[![Propaganistas](https://avatars.githubusercontent.com/u/6680176?v=4)](https://github.com/Propaganistas "Propaganistas (59 commits)")[![kitro](https://avatars.githubusercontent.com/u/5256921?v=4)](https://github.com/kitro "kitro (1 commits)")[![lucacerretani](https://avatars.githubusercontent.com/u/12126581?v=4)](https://github.com/lucacerretani "lucacerretani (1 commits)")[![tohtamysh](https://avatars.githubusercontent.com/u/1841267?v=4)](https://github.com/tohtamysh "tohtamysh (1 commits)")

---

Tags

laravelvalidatorphonemobiletemporarythrowawaydisposable

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tagmood-laravel-disposable-phone/health.svg)

```
[![Health](https://phpackages.com/badges/tagmood-laravel-disposable-phone/health.svg)](https://phpackages.com/packages/tagmood-laravel-disposable-phone)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M234](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M146](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

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