PHPackages                             otpjet/otpjet-php - 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. [API Development](/categories/api)
4. /
5. otpjet/otpjet-php

ActiveLibrary[API Development](/categories/api)

otpjet/otpjet-php
=================

PHP pack for OTPJet Api integration.

1.0.3(4y ago)1101MITPHP

Since Apr 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/otpjet/otpjet-php)[ Packagist](https://packagist.org/packages/otpjet/otpjet-php)[ RSS](/packages/otpjet-otpjet-php/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

otpjet-php
==========

[](#otpjet-php)

PHP library for integration of OTPJet SMS API.

Main website: **[otpjet.com](https://otpjet.com)**

Check out **[RestFul API Documentation](https://docs.otpjet.com)**

Send OTP
--------

[](#send-otp)

```
use OtpjetPhp\Api;
$api = new Api();
$api->sendOTP($apiKey, $templateKey, $mobile, $countryCode);
```

### Parameters

[](#parameters)

- `apiKey`: Unique project key generated along side the project. and can be found in project's page in panel.
- `templateKey`: Unique template key generated after importing templates in project.
- `mobile`: Recipient mobile number.

### Response

[](#response)

`sendOTP()` - Returns response which contains `otpKey` which should be stored in session or db for further validation.

Validate OTP
------------

[](#validate-otp)

```
use OtpjetPhp\Api;
$api = new Api();
$api->validateOTP($sha1ofOtp, $otpKey);
```

### Parameters

[](#parameters-1)

- `sha1ofOtp`: The otp which you intent to validate is to be sent in this parameter after sha1Encryption.
- `otpKey`: The otpKey which you stored while sending OTP is to be sent here.

### Response

[](#response-1)

`validateOTP` - Returns response return status which is `success/failed`. which tells weather the otp is correct or not.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

Every ~0 days

Total

4

Last Release

1475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f535fd830d4a8cd52c14b8dce05eb9ad17d1b2473ec660e034f7259fc335004?d=identicon)[otpjet](/maintainers/otpjet)

---

Top Contributors

[![otpjet](https://avatars.githubusercontent.com/u/103280023?v=4)](https://github.com/otpjet "otpjet (11 commits)")[![adsazad](https://avatars.githubusercontent.com/u/56344400?v=4)](https://github.com/adsazad "adsazad (6 commits)")

### Embed Badge

![Health badge](/badges/otpjet-otpjet-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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