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.59(2mo ago)04371MITPHPPHP ^7.1|^8.0CI passing

Since Mar 17Pushed 1mo 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 3d ago

READMEChangelog (1)Dependencies (36)Versions (92)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

54

—

FairBetter than 96% of packages

Maintenance90

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 50.4% 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

90

Last Release

65d 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 (63 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.0M7](/packages/propaganistas-laravel-disposable-email)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)

PHPackages © 2026

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