PHPackages                             checkmobi/checkmobi-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. checkmobi/checkmobi-php

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

checkmobi/checkmobi-php
=======================

CheckMobi SDK for PHP

1.4(2y ago)620.3k↓50%7MITPHPPHP &gt;=5.5

Since Nov 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/checkmobi/checkmobi-php)[ Packagist](https://packagist.org/packages/checkmobi/checkmobi-php)[ Docs](https://github.com/checkmobi/checkmobi-php)[ RSS](/packages/checkmobi-checkmobi-php/feed)WikiDiscussions master Synced 2mo ago

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

checkmobi-php
=============

[](#checkmobi-php)

The official SDK for integrating with the [CheckMobi API](https://checkmobi.com/documentation/api-reference/). CheckMobi is a service that provides affordable services like:

- Two-factor authentication via SMS, Missed Call, and IVR
- SMS API for marketing and transactional notifications.
- Voice API for creating custom IVRs.

This PHP SDK makes it easy for developers to add CheckMobi's features like SMS and Voice to their PHP apps without much hassle.

Requirements
------------

[](#requirements)

In order to use the library you need to have available one of `CURL` or `HTTP_Request2` extension:

### Using `CURL`

[](#using-curl)

```
php-curl
php-openssl

```

### Using `HTTP_Request2` :

[](#using-http_request2-)

```
pear install HTTP_Request2

```

The SDK initially checks for the `CURL` extension and then falls back to `HTTP_Request2` if necessary. You can set the transport method using the constructor's `options` parameter.

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

[](#installation)

The SDK can be installed using `Composer`:

```
composer require  checkmobi/checkmobi-php
```

Get started
-----------

[](#get-started)

### Create the CheckMobiRest client

[](#create-the-checkmobirest-client)

```
use checkmobi\CheckMobiRest;
$client = new CheckMobiRest("secret key here");
```

In case you want to change the default behaviours of the library you can use the `options` array properties:

PropertyDefaultDescriptionapi.base\_urlAPI endpoint.api.versionv1API endpoint version.net.transport`RequestInterface::HANDLER_DEFAULT`Transport engine: `RequestInterface::HANDLER_DEFAULT` - will try to use `CURL` if available otherwise fallbacks to `HTTP_Request2`, `RequestInterface::HANDLER_CURL` will force to use CURL, if fails will trigger an exception, `RequestInterface::HANDLER_HTTP2` will force `HTTP_Request2` instantiation, if fails will trigger an exception.net.timeout30Connection and request timeout in seconds.net.ssl\_verify\_peertrueIndicates if the server certificate is verified or not before transmitting any data.#### Example

[](#example)

```
$client = new CheckMobiRest("secret key here", [
    "net.timeout" => 10,
    "net.ssl_verify_peer" => false
]);
```

### Resources

[](#resources)

The SDK is a wrapper over the REST API described [here](https://checkmobi.com/documentation/api-reference/). For all properties accepted by the following methods check [the documentation](https://checkmobi.com/documentation/api-reference/).

```
// get list of countries & flags

$response = $client->GetCountriesList();

// get account details

$response = $client->GetAccountDetails();

// get prefixes

$response = $client->GetPrefixes();

// checking a number for being valid

$response = $client->CheckNumber(array("number" => "+number_here"));

// validate a number using "Missed call method". (type can be : sms, ivr, reverse_cli)

$response = $client->RequestValidation(array("type" => "reverse_cli", "number" => "+number_here"));

// verify a pin for a certain request

$response = $client->VerifyPin(array("id" => "request id here", "pin" => "5659"));

// check validation status for a certain request

$response = $client->ValidationStatus(array("id" => "request id here"));

// get remote config profile

$response = $client->GetRemoteConfigProfile(array("number" => "+number_here", "platform" => "android"));

// send a custom sms

$response = $client->SendSMS(array("to" => "+number_here", "text" => "message here"));

// get sms details

$response = $client->GetSmsDetails(array("id" => "sms id here"));

// place call

$params = [
    "from" => "+source_number_here",
    "to" => "+destination_number_here",
    "events" => [
        ["action" => "speak", "text" => "Hello world", "loop" => 2, "language" => "en-US"]
    ]
];
$response = $client->PlaceCall($params);

// get call details

$response = $client->GetCallDetails(array("id" => "call id here"));

// hangup call

$response = $client->HangUpCall(array("id" => "call id here"));

// perform HLR Lookup

$response = $client->HLRLookup(["number"=> "+number here"]);

// perform MNP Lookup

$response = $client->MNPLookup(["number"=> "+number here"]);

// perform number verification

$response = $client->VerifyLookup(["number"=> "+number here"]);
```

### Response handling

[](#response-handling)

The response it's an object of the `CheckMobiResponse` type which exposes the following methods:

MethodDescriptionis\_success`boolean` - returns if the response represents an error or not.status\_code`integer` - the HTTP status code received.payload`array` or `NULL` - The json decoded response payload as received from the server.#### Example

[](#example-1)

```
if($response->is_success()) {
    // success
    print_r($response->payload());
}
else
{
    // failure
    print "error code: ".$response->payload()["code"]." error message: ".$response->payload()["error"];
}
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 72.4% 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 ~661 days

Total

5

Last Release

834d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.2

1.4PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/171d1d756e6ca83648a73db6768589908c05a13018815e301ef6b425961b0510?d=identicon)[checkmobi](/maintainers/checkmobi)

---

Top Contributors

[![checkmobi](https://avatars.githubusercontent.com/u/11019757?v=4)](https://github.com/checkmobi "checkmobi (21 commits)")[![sergiobelya](https://avatars.githubusercontent.com/u/6141086?v=4)](https://github.com/sergiobelya "sergiobelya (3 commits)")[![Junker](https://avatars.githubusercontent.com/u/1144095?v=4)](https://github.com/Junker "Junker (2 commits)")[![charlietango](https://avatars.githubusercontent.com/u/7480480?v=4)](https://github.com/charlietango "charlietango (1 commits)")[![e-tipalchuk](https://avatars.githubusercontent.com/u/722652?v=4)](https://github.com/e-tipalchuk "e-tipalchuk (1 commits)")[![ypylypenko](https://avatars.githubusercontent.com/u/19938155?v=4)](https://github.com/ypylypenko "ypylypenko (1 commits)")

---

Tags

hlr-lookupsivr-applicationmissed-callmnp-lookupsms-apitwo-factor-authenticationvoice-apiTwo Factor Authenticationsmsivrcheckmobimissed call

### Embed Badge

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

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

###  Alternatives

[pragmarx/google2fa

A One Time Password Authentication package, compatible with Google Authenticator.

2.0k82.4M164](/packages/pragmarx-google2fa)[pragmarx/google2fa-laravel

A One Time Password Authentication package, compatible with Google Authenticator.

1.0k15.5M63](/packages/pragmarx-google2fa-laravel)[robthree/twofactorauth

Two Factor Authentication

1.2k10.5M66](/packages/robthree-twofactorauth)[pragmarx/google2fa-qrcode

QR Code package for Google2FA

12124.6M37](/packages/pragmarx-google2fa-qrcode)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[paragonie/multi-factor

Vendor-agnostic two-factor authentication library

142195.5k2](/packages/paragonie-multi-factor)

PHPackages © 2026

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