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(12mo ago)01MITPHP

Since Jul 7Pushed 11mo agoCompare

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

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

25

—

LowBetter than 35% of packages

Maintenance51

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

361d 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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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