PHPackages                             damanmokha/otp-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. damanmokha/otp-verification

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

damanmokha/otp-verification
===========================

A Laravel package for sending and verifying OTPs (One-Time Passwords) using Twilio.

v1.0.1(2y ago)310MITPHPPHP ^7.3|^8.0

Since Aug 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/damanmokha/otp-verification)[ Packagist](https://packagist.org/packages/damanmokha/otp-verification)[ RSS](/packages/damanmokha-otp-verification/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

OTP Verification Package
========================

[](#otp-verification-package)

A Laravel package for sending and verifying OTPs (One-Time Passwords) using Twilio.

Installation
------------

[](#installation)

1. Install the package using Composer:

    ```
    composer require damanmokha/otp-verification
    ```
2. Publish the migrations to set up the required database table:

    ```
    php artisan migrate

    ```

    If you wish to modify migrations you can publish it using `php artisan vendor:publish --tag=otp-verification-migrations`
3. Add your Twilio credentials to your `.env` file:

    ```
    TWILIO_SID=YourTwilioSid
    TWILIO_AUTH_TOKEN=YourTwilioAuthToken
    TWILIO_PHONE_NUMBER=YourTwilioPhoneNumber

    ```

    `Replace `YourTwilioSid`, `YourTwilioAuthToken`, and `YourTwilioPhoneNumber` with your actual Twilio credentials.`

    Don't have Twilio credentials? You can get them from [Twilio](https://www.twilio.com/).
4. Add your config to services array in `app/config/services.php`

    ```
