PHPackages                             saeed/otp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. saeed/otp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

saeed/otp
=========

otp for send password to whatsapp 1

471CSS

Since Mar 13Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel OTP Authentication Package
==================================

[](#laravel-otp-authentication-package)

This guide walks you through setting up the OTP (One-Time Password) authentication package for your Laravel project.

---

Prerequisites
-------------

[](#prerequisites)

1. A [UltraMsg](https://www.ultramsg.com/) account.
2. Laravel installed on your project.

---

Setup Instructions
------------------

[](#setup-instructions)

### 1. Register for UltraMsg

[](#1-register-for-ultramsg)

- Visit [UltraMsg](https://www.ultramsg.com/) and create an account.
- Obtain the following credentials:
    - **Instance**
    - **Token**

---

### 2. Install the OTP Package

[](#2-install-the-otp-package)

Run the following command in your Laravel project terminal:

```
composer require saeed/otp:dev-main
```

---

### 3. Update Composer Autoload

[](#3-update-composer-autoload)

1. Open your `composer.json` file.
2. Add the following line to the `autoload` section:

    ```
    "Saeed\\Otp\\": "src/"
    ```
3. Run the following command to update the autoloader:

    ```
    composer dump-autoload
    ```

---

### 4. Configure the Service Provider

[](#4-configure-the-service-provider)

1. Open the `config/app.php` file.
2. Add the service provider to the `providers` array:

    ```
    Saeed\Otp\OtpServiceProvider::class,
    ```
3. Add an alias to the `aliases` array:

    ```
    'Otp' => Saeed\Otp\OtpFacade::class,
    ```

---

### 5. Update Authentication Providers

[](#5-update-authentication-providers)

1. Open the `config/auth.php` file.
2. Replace the default model entry with the OTP User model:

    ```
    'model' => \Saeed\Otp\Models\OtpUser::class,
    ```

---

### 6. Publish Configuration File

[](#6-publish-configuration-file)

To publish the package configuration, run:

```
php artisan vendor:publish --provider="Saeed\Otp\OtpServiceProvider" --tag="otp" --force
```

---

### 7. Configure Instance and Token

[](#7-configure-instance-and-token)

1. Open the published configuration file: `config/otp.php`.
2. Add your UltraMsg credentials:

    ```
    'WhatsApp_Instance' => 'your_instance',
    'WhatsApp_Token' => 'your_token',
    ```

---

### 8. Run Database Migrations

[](#8-run-database-migrations)

Run the following command to create the required database tables:

```
php artisan migrate
```

---

### 9. Create a Home Page

[](#9-create-a-home-page)

You can now create a home page in your application to implement and utilize OTP functionality.

---

Notes
-----

[](#notes)

- Ensure you have your `.env` file properly configured for database and app settings before running migrations.
- For more details and advanced usage, refer to the package documentation or contact the package maintainer.

---

Happy Coding! 🚀

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c85fc4be96d107ee40ae69fe5e692d1616513c19a4dce40ad0a583de048ac5f?d=identicon)[saeed-mirjalili](/maintainers/saeed-mirjalili)

---

Top Contributors

[![saeed-mirjalili](https://avatars.githubusercontent.com/u/154972495?v=4)](https://github.com/saeed-mirjalili "saeed-mirjalili (21 commits)")[![AzadGh95](https://avatars.githubusercontent.com/u/46772227?v=4)](https://github.com/AzadGh95 "AzadGh95 (1 commits)")

### Embed Badge

![Health badge](/badges/saeed-otp/health.svg)

```
[![Health](https://phpackages.com/badges/saeed-otp/health.svg)](https://phpackages.com/packages/saeed-otp)
```

###  Alternatives

[jasonpriem/human-name-parser

Takes human names of arbitrary complexity and various wacky formats and parses them out.

110119.6k](/packages/jasonpriem-human-name-parser)[scotthuangzl/yii2-google-chart

A wraper for google chart

12189.0k2](/packages/scotthuangzl-yii2-google-chart)

PHPackages © 2026

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