PHPackages                             fouladgar/laravel-mobile-verification - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fouladgar/laravel-mobile-verification

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

fouladgar/laravel-mobile-verification
=====================================

This package provides convenient methods for making token code, sending and verifying mobile phone verification requests.

v4.4.0(1y ago)46636.4k↑98.1%35MITPHPPHP ^8.2CI passing

Since Jan 27Pushed 1y ago13 watchersCompare

[ Source](https://github.com/mohammad-fouladgar/laravel-mobile-verification)[ Packagist](https://packagist.org/packages/fouladgar/laravel-mobile-verification)[ RSS](/packages/fouladgar-laravel-mobile-verification/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (16)Used By (0)

Laravel Mobile Verification
===========================

[](#laravel-mobile-verification)

[![alt text](./cover.jpg "EloquentBuilder")](./cover.jpg)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f14892b86ef674a082e0f43fcb30be1722ae1559a391cccf8aeb1f0daae24ca9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e2e737667)](https://packagist.org/packages/fouladgar/laravel-mobile-verification)[![Test Status](https://camo.githubusercontent.com/e5c4f83f515ff380f3855f1dd24528f0ec3cce6c09078d64cb4ed287450aaa23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e2f72756e2d74657374732e796d6c3f6c6162656c3d7465737473)](https://camo.githubusercontent.com/e5c4f83f515ff380f3855f1dd24528f0ec3cce6c09078d64cb4ed287450aaa23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e2f72756e2d74657374732e796d6c3f6c6162656c3d7465737473)[![Code Style Status](https://camo.githubusercontent.com/7af67545250d834a9ee207819cca3199b43f71a4a6a05b245c1fdada7d23945c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e2f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65)](https://camo.githubusercontent.com/7af67545250d834a9ee207819cca3199b43f71a4a6a05b245c1fdada7d23945c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e2f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65)[![Total Downloads](https://camo.githubusercontent.com/898639a22d373f6e482e7e5ce04ac021570cb6d7fb8a4a2dff4e93fc0323bf2b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e)](https://camo.githubusercontent.com/898639a22d373f6e482e7e5ce04ac021570cb6d7fb8a4a2dff4e93fc0323bf2b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f756c61646761722f6c61726176656c2d6d6f62696c652d766572696669636174696f6e)

Introduction
------------

[](#introduction)

Many web applications require users to verify their mobile phone numbers before using the application. Rather than forcing you to re-implement this on each application, this package provides convenient methods for sending and verifying mobile phone verification requests.

Version Compatibility
---------------------

[](#version-compatibility)

LaravelLaravelMobileVerification12.0.x4.4.x11.0.x4.2.x10.0.x4.0.x9.0.x3.0.x6.0.x to 8.0x2.0.x5.0.x1.2.0Installation
------------

[](#installation)

You can install the package via composer:

```
composer require fouladgar/laravel-mobile-verification
```

Configuration
-------------

[](#configuration)

To get started, you should publish the `config/mobile_verifier.php` config file with:

```
php artisan vendor:publish --provider="Fouladgar\MobileVerification\ServiceProvider" --tag="config"

```

### Token Storage

[](#token-storage)

After generating a token, we need to store it in a storage. This package supports two drivers: `cache` and `database`which the default driver is `cache`. You may specify which storage driver you would like to be used for saving tokens in your application:

```
// config/mobile_verifier.php
