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.56(3mo ago)04061MITPHPPHP ^7.1|^8.0CI passing

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

READMEChangelog (1)Dependencies (18)Versions (89)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

53

—

FairBetter than 97% of packages

Maintenance84

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 Factor2

2 contributors hold 50%+ of commits

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

87

Last Release

101d 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://www.gravatar.com/avatar/0e65f93d6300cd5995a34f29e2a4e2584310f2dfd5c5c5ea436abe7253910c66?d=identicon)[tagmood](/maintainers/tagmood)

---

Top Contributors

[![tagmood](https://avatars.githubusercontent.com/u/54882223?v=4)](https://github.com/tagmood "tagmood (60 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

5762.6M6](/packages/propaganistas-laravel-disposable-email)[propaganistas/laravel-phone

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

3.0k35.7M107](/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)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

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

1.7k12.1M99](/packages/laravel-pulse)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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