PHPackages                             mobiweb/sdk - 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. mobiweb/sdk

ActiveLibrary[API Development](/categories/api)

mobiweb/sdk
===========

5.0.0 PHP library for communicating with the MobiWeb REST APIs.

5.0.0(5mo ago)68.6k↓25.6%3MITPHPPHP &gt;=7.0.0

Since Jun 17Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/mobiweb/mobiweb-php)[ Packagist](https://packagist.org/packages/mobiweb/sdk)[ Docs](https://api.solutions4mobiles.com/index.html)[ RSS](/packages/mobiweb-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)DependenciesVersions (9)Used By (0)

mobiweb-php
===========

[](#mobiweb-php)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/6970ff23f9754df0db65d2016010feab603fd8b29e5ec0a390b62a3dc8fde233/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6d6f62697765622f6d6f62697765622d706870)](https://camo.githubusercontent.com/6970ff23f9754df0db65d2016010feab603fd8b29e5ec0a390b62a3dc8fde233/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6d6f62697765622f6d6f62697765622d706870)[![Packagist Downloads](https://camo.githubusercontent.com/dae3af58f9cea82db8af38bd9fade6463fc6f2014e06c9fcfa43948e085c8c82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f62697765622f73646b3f6c6162656c3d5061636b6167697374)](https://camo.githubusercontent.com/dae3af58f9cea82db8af38bd9fade6463fc6f2014e06c9fcfa43948e085c8c82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f62697765622f73646b3f6c6162656c3d5061636b6167697374)[![GitHub all releases](https://camo.githubusercontent.com/1e7d2c8e327291ae9da3713a0972c51b6be175fde6b0dca4b579254e95ab4e85/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6d6f62697765622f6d6f62697765622d7068702f746f74616c3f6c6162656c3d476974487562)](https://camo.githubusercontent.com/1e7d2c8e327291ae9da3713a0972c51b6be175fde6b0dca4b579254e95ab4e85/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6d6f62697765622f6d6f62697765622d7068702f746f74616c3f6c6162656c3d476974487562)[![GitHub repo size](https://camo.githubusercontent.com/5124f5a3c21f266a3a43f754614ac21c39a4ebbb96558a1ebabcc333f48f38e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6d6f62697765622f6d6f62697765622d706870)](https://camo.githubusercontent.com/5124f5a3c21f266a3a43f754614ac21c39a4ebbb96558a1ebabcc333f48f38e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6d6f62697765622f6d6f62697765622d706870)[![GitHub top language](https://camo.githubusercontent.com/0773dcdaeb6d19b9859ab98265fb884da533de5b86f807cdaacf5f4fd6bf3e72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6d6f62697765622f6d6f62697765622d706870)](https://camo.githubusercontent.com/0773dcdaeb6d19b9859ab98265fb884da533de5b86f807cdaacf5f4fd6bf3e72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6d6f62697765622f6d6f62697765622d706870)[![GitHub](https://camo.githubusercontent.com/2fb99da303f2f482dc351604a868fec29d0daa5f2d6d2456456961b0e76b28b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6f62697765622f6d6f62697765622d706870)](https://camo.githubusercontent.com/2fb99da303f2f482dc351604a868fec29d0daa5f2d6d2456456961b0e76b28b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6f62697765622f6d6f62697765622d706870)

A PHP library for interfacing with MobiWeb RESTful SMS, HLR and OTP APIs.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Test Account](#api-account)
- [SMS API](#sms-api)
- [HLR API](#hlr-api-api)
- [Asynch SMS API](#asynchronous-sms-api)
- [Asynch OTP API](#asynchronous-otp-api)
- [Help](#getting-help)

Documentation
-------------

[](#documentation)

MobiWeb RESTful APIs can be found [here](https://api.solutions4mobiles.com/sms-api.html).

Versions
--------

[](#versions)

### Supported PHP Versions

[](#supported-php-versions)

This library supports the following PHP implementations:

- From PHP 7.0 up to PHP 8.2

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

[](#installation)

- Download Source
- composer require [`mobiweb/sdk`](https://packagist.org/packages/mobiweb/sdk)

```
composer require mobiweb/sdk

```

API Account
-----------

[](#api-account)

- With MobiWeb SMS API you can send SMS messages to 7+ billion subscribers of 1000+ Mobile Operators in 200+ countries.
- With MobiWeb HLR API you can maximize the performance of your campaigns and your business communication. Validate mobile number databases, remove invalid entries and receive correct portability information, identifying the operators that the mobile numbers belong to.
- With MobiWeb OTP API you can provide additional security to simple username and password authentication, authenticated transactions, accurately verify users, reduce fraud and reduce two-factor authentication cost (no hardware tokens required).
- With MobiWeb Asynchronous SMS API you can send SMS messages with high throughput, utilizing SMPP protocol.

The APIs are based on REST with built-in HTTP authentication and HTTP status codes. All data exchange is done in JSON format.

To test the SMS, OTP and HLR APIs, you will need a valid API account. If you don't have one yet, [click here](https://www.solutions4mobiles.com/product/sms-messaging) to register for a FREE account.

To test the Asynch SMS API, you will need a valid SMPP API account. If you don't have one yet, please contact us [here](mailto:sales@solutions4mobiles.com?subject=Asynchronous%20SMS%20API%20Test%20Account%20Request&body=Dear%20Team,%20please%20provide%20me%20with%20a%20test%20account%20for%20the%20Asynchronous%20SMS%20API.) to register for a FREE test account.

Examples
--------

[](#examples)

### SMS API

[](#sms-api)

### Send a single SMS

[](#send-a-single-sms)

```

```

### Send multiple SMS

[](#send-multiple-sms)

```

```

### Send SMS to multiple recipients

[](#send-sms-to-multiple-recipients)

```

```

### Send SMS with all options

[](#send-sms-with-all-options)

```

```

### Send SMS with shortened URL and URL tracking enabled

[](#send-sms-with-shortened-url-and-url-tracking-enabled)

```

```

### Schedule SMS

[](#schedule-sms)

```

```

### Get account balance

[](#get-account-balance)

```

```

### Get account pricing

[](#get-account-pricing)

```

```

### Receive delivery reports

[](#receive-delivery-reports)

Delivery reports are forwarded automatically, to the user system / platform. When an SMS delivery report is received by our SMS API Platform, the DLR information is immediately forwarded to your specified DLR Callback URL via a POST request. You can setup your DLR Callback URL in the [web portal](https://sms.solutions4mobiles.com).

```
