PHPackages                             wasento/package-wasento-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. wasento/package-wasento-otp

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

wasento/package-wasento-otp
===========================

Package OtpWasento

02PHP

Since Sep 7Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Package OtpWasento
==================

[](#package-otpwasento)

An OTP, or one-time password, is a randomly generated password that is sent to the user's device, such as their phone or computer, via WhatsApp, just before they log in to an account. OTPs are a type of two-factor authentication (2FA), which means that they require two different pieces of information to verify the user's identity. The first piece of information is usually the user's username and password, and the second piece of information is the OTP.

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

[](#installation)

```
composer require wasento/package-wasento-otp

```

Get countries
-------------

[](#get-countries)

```
use WASENTO\OtpWasento\{OtpWasentoApi,
	OtpWasentoConfig
};

OtpWasentoConfig::$api = 'YOUR_API_KEY';
$results = (new OtpWasentoApi)->countries();
var_dump($results);
```

**Sample Response:**

```
stdClass Object
(
    [success] => 1
    [message] => success
    [results] => Array
        (
            [0] => stdClass Object
                (
                    [name] => Afghanistan
                    [alpha-2] => AF
                    [country-code] => 004
                )
             ...
        )
)
```

Request OTP
-----------

[](#request-otp)

```
use WASENTO\OtpWasento\{OtpWasentoApi,
	OtpWasentoConfig
};

OtpWasentoConfig::$api = 'YOUR_API_KEY';
$results = (new OtpWasentoApi)->requestOtp('081xxxxxxxx','ID','{code} is your OTP');
var_dump($results);
```

**Sample Response:**

```
stdClass Object
(
    [success] => 1
    [message] => success
    [results] => c442f0d92c0fec0d7a4414fc83323942
)
```

Verify OTP
----------

[](#verify-otp)

```
use WASENTO\OtpWasento\{OtpWasentoApi,
	OtpWasentoConfig
};

OtpWasentoConfig::$api = 'YOUR_API_KEY';
$results = (new OtpWasentoApi)->verifyOtp('c442f0d92c0fec0d7a4414fc83323942','418639');
var_dump($results);
```

**Sample Response:**

```
stdClass Object
(
    [success] => 1
    [message] => success
    [results] =>
)
```

**NOTE:**

- OTP code valid for 5 minutes. It`s mean user cannot request multiple times with same phone number before OTP code expired.
- Get your API Key [here](https://app.wasento.com/plugin)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/642207a5ea94dea8a35c25a124ff4361e9aab2d5f1718c69e67a1a7719f5072a?d=identicon)[wasento](/maintainers/wasento)

---

Top Contributors

[![69dev69dev](https://avatars.githubusercontent.com/u/7419157?v=4)](https://github.com/69dev69dev "69dev69dev (3 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/wasento-package-wasento-otp/health.svg)](https://phpackages.com/packages/wasento-package-wasento-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)
