PHPackages                             timedoor/whatsapp-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. timedoor/whatsapp-otp

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

timedoor/whatsapp-otp
=====================

Whatsapp OTP package for Laravel

v1.0.0(3y ago)4325MITPHPPHP ^7.4|^8.0|^8.1

Since Jan 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/backend-timedoor/whatsapp-otp)[ Packagist](https://packagist.org/packages/timedoor/whatsapp-otp)[ RSS](/packages/timedoor-whatsapp-otp/feed)WikiDiscussions master Synced 1mo ago

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

whatsapp-otp
============

[](#whatsapp-otp)

This package is used to send WhatsApp OTP notification using WhatsApp Cloud API on Laravel.

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

[](#installation)

Install package via composer

```
composer require timedoor/whatsapp-otp

```

Install config and notification file for WhatsApp OTP

```
php artisan whatsapp-otp:install

```

### Set Up WhatsApp Cloud API

[](#set-up-whatsapp-cloud-api)

This package requires a Meta developer account and a Meta developer app to start sending message with WhatsApp. To set up Meta developer app follow the instructions as described in WhatsApp Cloud API [documentation](https://developers.facebook.com/docs/whatsapp/cloud-api/get-started#set-up-developer-assets).

### Create WhatsApp Template

[](#create-whatsapp-template)

WhatsApp API only allows you to start conversation by sending a template message. In order to send an OTP notfication, you must make a WhatsApp template first. You can take a look at the WhatsApp Template [documentation](https://developers.facebook.com/docs/whatsapp/message-templates/creation/) page for more details.

For multi language template, you can create separate templates for different languages with the same template name.

### Configure WhatsApp Cloud API

[](#configure-whatsapp-cloud-api)

Copy the access token and phone number ID from Whatsapp app dashboard.

Then place your access token, phone number ID, template name, and template language in the `.env` file as below.

```
WHATSAPP_ACCESS_TOKEN=
WHATSAPP_PHONE_ID=
WHATSAPP_TEMPLATE_NAME=
WHATSAPP_TEMPLATE_LANG=

```

The config settings of WhatsApp API can be seen on `config/whatsapp.php` file.

Usage
-----

[](#usage)

This package comes with notification class `WhatsappOtpNotification` that is stored in `app/Notifications` folder.

To send OTP notification you can use `notify` method provided by `Notifiable` trait like the example below.

```
$notification = new WhatsappOtpNotification();
$event->otp->notify($notification);

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64ed2128dc091e3a0739011ed48c4bfab7b28951f3797e99b8f916a50e63ad82?d=identicon)[backend-timedoor](/maintainers/backend-timedoor)

---

Top Contributors

[![backend-timedoor](https://avatars.githubusercontent.com/u/79293259?v=4)](https://github.com/backend-timedoor "backend-timedoor (2 commits)")[![taradhita](https://avatars.githubusercontent.com/u/37240689?v=4)](https://github.com/taradhita "taradhita (1 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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