PHPackages                             ideabiz/sms - 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. ideabiz/sms

ActiveLibrary[API Development](/categories/api)

ideabiz/sms
===========

PHP helper classes for ideabiz/sms api integration

v1.0(8y ago)016PHPPHP &gt;=5.3.0

Since Jun 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ravithb/IdeaBiz-Request-Handler---PHP)[ Packagist](https://packagist.org/packages/ideabiz/sms)[ RSS](/packages/ideabiz-sms/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

\#IdeaBiz PHP sample

This will handle the API call. and also it handle to token. If need,it will refresh existing token automatically . So you only need to make API call via this SDK

\##Configuration

- Make **config.json** and **lib/data.json** writable
- Change config.json files properties based on your application

To get refresh token, you have to use **token api** with username once [ refer Documentation](http://docs.ideabiz.lk/en/Authorization/Authorization%20v1)

Use
---

[](#use)

Once config.json is configured, you can include `IdeaBizAPIHandler.php` to your code. then call `sendAPICall` method

For example

```
include 'IdeaBizAPIHandler.php';
$auth = new IdeaBizAPIHandler();
$out = $auth->sendAPICall($url,RequestMethod::POST,$body);

```

Parameters
----------

[](#parameters)

### URL

[](#url)

complete URL of ideabiz api. Example for sms `https://ideabiz.lk/apicall/smsmessaging/v1/outbound/94777123456/requests`

### Method

[](#method)

its a HTTP method. you can use `RequestMethod` Enum for that. this accepts string as well such as "POST and "GET". RequestMethod enum contains

```
RequestMethod::POST
RequestMethod::GET
RequestMethod::DELETE
RequestMethod::PUT

```

### Body

[](#body)

this is a plain string that contains any payload. If you need to send an object please `json_encode` it.

```
$out = $auth->sendAPICall($url,RequestMethod::POST,json_encode($obj));

```

Response
--------

[](#response)

Result returns as array.

### Success

[](#success)

```
 $result['status']
 $result['statusCode']
 $result['time']
 $result['header']
 $result['body']

```

#### status

[](#status)

this contains OK for success

#### Status Code

[](#status-code)

this contains http status code. eg : 200, 400 like that

#### Time

[](#time)

Time taken to complete the request

#### Headers

[](#headers)

HTTP headers that returns by the server

#### Body

[](#body-1)

body is in plain text. if you have an object, you can use `json_decode`

### Error

[](#error)

this happens if connection fails or an error occurs other than the Authentication failures

```
 $result['status']
 $result['error']

```

#### status

[](#status-1)

The string value "ERROR" is given for the Errors

#### error

[](#error-1)

this contain error description

### Exceptions

[](#exceptions)

This returns two types of exceptions if any authentication errors

its

```
AuthenticationException
ConnectionException

```

### Example code

[](#example-code)

Please refer `test.php`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

3263d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bf394fd4bd39d286d7d2d6e27d7df44e9f4480db83f14b16cea281f2038ed50?d=identicon)[ravithb](/maintainers/ravithb)

---

Top Contributors

[![malindaprasad](https://avatars.githubusercontent.com/u/890731?v=4)](https://github.com/malindaprasad "malindaprasad (4 commits)")[![ravithb](https://avatars.githubusercontent.com/u/6752640?v=4)](https://github.com/ravithb "ravithb (2 commits)")

### Embed Badge

![Health badge](/badges/ideabiz-sms/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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