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

ActiveLibrary[API Development](/categories/api)

iraqotpapi/otp
==============

PHP SDK for Iraq OTP API (WhatsApp, SMS, Fallback)

v1.0.0(10mo ago)01MITPHP

Since Jul 7Pushed 9mo agoCompare

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

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

iraqotpapi-php-sdk
==================

[](#iraqotpapi-php-sdk)

IraqOTPAPI is Iraq's leading OTP API provider, offering robust and secure WhatsApp and SMS authentication services tailored specifically for the Iraqi market. Our PHP SDK makes it incredibly simple for developers to integrate reliable one-time password (OTP) functionality into their applications, ensuring secure user verification and transactions. Whether you need to implement OTP for user login, transaction confirmation, or two-factor authentication (2FA), IraqOTPAPI delivers fast and dependable OTP delivery across Iraq, making us the trusted choice for businesses prioritizing secure digital interactions in the region.

Iraq OTP API – PHP SDK
======================

[](#iraq-otp-api--php-sdk)

A lightweight PHP SDK for sending OTP codes via WhatsApp (with fallback to Telegram/SMS) using the [IraqOTPAPI.com](https://iraqotpapi.com) platform.

Installation
============

[](#installation)

```
composer require iraqotpapi/otp
```

Usage
-----

[](#usage)

```
sendOtp([
    'to'       => '9647xxxxxxxxx',               // Recipient phone number (E.164 format)
    'sender'   => 'MySenderID',                  // Approved Sender ID
    'channel'  => 'whatsapp',                    // Primary channel
    'message'  => 'Your OTP Code is 123456',     // OTP message content
    'fallback' => 'sms',                         // Optional fallback channel
    'lang'     => 'en'                           // Optional language (ku, ar, en)
]);

// Handle the response
print_r($response);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance55

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

315d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/af40407bb82152e1d08910dac07a6fd9032504ef45f55a2115d7c0162d72bb80?d=identicon)[iraqotpapi](/maintainers/iraqotpapi)

---

Top Contributors

[![iraqotpapi](https://avatars.githubusercontent.com/u/219727377?v=4)](https://github.com/iraqotpapi "iraqotpapi (15 commits)")

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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