PHPackages                             krve/inmobile - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. krve/inmobile

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

krve/inmobile
=============

An Inmobile PHP SDK for sending text messages

v0.4.0(5y ago)156MITPHPPHP ^8.0

Since Apr 22Pushed 4y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/99246fcea28d7289bf8834bc0644072e5a346b363c5d2082d91a44d7a4249d60/687474703a2f2f706f7365722e707567782e6f72672f6b7276652f696e6d6f62696c652f76)](https://packagist.org/packages/krve/inmobile) [![Total Downloads](https://camo.githubusercontent.com/9a0931b969bb3df0de6a456e1cfe6256454c6021c6a49d859c195f040d560f36/687474703a2f2f706f7365722e707567782e6f72672f6b7276652f696e6d6f62696c652f646f776e6c6f616473)](https://packagist.org/packages/krve/inmobile) [![Latest Unstable Version](https://camo.githubusercontent.com/31e5f33fb4993f9b4ce3a533e771ef112de12dbb8c429a81ae1151b96dc42a78/687474703a2f2f706f7365722e707567782e6f72672f6b7276652f696e6d6f62696c652f762f756e737461626c65)](https://packagist.org/packages/krve/inmobile) [![License](https://camo.githubusercontent.com/5e90ad602ec82cfec92e217ce92ee774db7448f90d523a7b6d1347e2e93abf8f/687474703a2f2f706f7365722e707567782e6f72672f6b7276652f696e6d6f62696c652f6c6963656e7365)](https://packagist.org/packages/krve/inmobile)

Inmobile SMS Gateway
====================

[](#inmobile-sms-gateway)

This repo is deprecated in place of the new InMobile PHP API client: [Official SDK](https://github.com/inMobile/inMobile-PHP-API-Client)

This is a PHP package for sending text messages using [Inmobile](https://www.inmobile.com/). Inmobile is a text message gateway.

Read more about their API here:

Getting Started
---------------

[](#getting-started)

Install the package using composer and look below for documentation on how to use the package.

```
composer require krve/inmobile

```

### Sending a message

[](#sending-a-message)

```
use Krve\Inmobile\Gateway;
use Krve\Inmobile\Message;

$gateway = new Gateway('api-key');

$response = $gateway->send(
    Message::create('Hello World')
        ->from('MyCompany')
        ->to(4500000000)
);

$response->toArray();

/**
 * [
 *     ['msisdn' => '4500000000', 'id' => 'id-1']
 * ]
 */
```

### Setting a callback URL

[](#setting-a-callback-url)

```
use Krve\Inmobile\Gateway;
use Krve\Inmobile\Message;

$gateway = new Gateway('api-key');

$response = $gateway->send(
    Message::create('Hello World')
        ->from('MyCompany')
        ->to(4500000000),
    'https://example.com/callback'
);
```

### Error handling

[](#error-handling)

If you make a request to Inmobile, and the request fails, it throws an `GatewayErrorException`. This exception contains the Inmobile error code, and an exception message depending on the code.

```
// Response code is -11

$exception->getMessage(); // "Inmobile error: OverchargeDonationLimitExceeded"
$exception->getInmobileErrorCode(); // -11
```

If the status code from Inmobile is not found, it has the following exception message

```
$exception->getMessage(); // "ERROR: unknown response from inmobile. Response code was {statusCode}"
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Every ~4 days

Total

4

Last Release

1884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/282614fe65a79cb27ea6a61e5e07342b945ce362f4168b80fb0a106e683bfad6?d=identicon)[krve](/maintainers/krve)

---

Top Contributors

[![krve](https://avatars.githubusercontent.com/u/5139119?v=4)](https://github.com/krve "krve (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/krve-inmobile/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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