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(1y ago)01MITPHP

Since Jul 7Pushed 1y agoCompare

[ Source](https://github.com/iraqotpapi/iraqotpapi-php-sdk)[ Packagist](https://packagist.org/packages/iraqotpapi/otp)[ RSS](/packages/iraqotpapi-otp/feed)WikiDiscussions main Synced 1w 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

24

—

LowBetter than 30% of packages

Maintenance47

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

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

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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