Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aqlx86/isms-php
isms api php client
https://github.com/aqlx86/isms-php
api isms sms
Last synced: 29 days ago
JSON representation
isms api php client
- Host: GitHub
- URL: https://github.com/aqlx86/isms-php
- Owner: aqlx86
- License: mit
- Created: 2017-02-21T01:12:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-30T14:17:47.000Z (over 6 years ago)
- Last Synced: 2024-11-25T05:37:38.877Z (about 1 month ago)
- Topics: api, isms, sms
- Language: PHP
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ISMS-PHP
iSMS PHP ClientPlease check isms site for the list of response error codes and description.
https://www.isms.com.my/response_result.php### Current features
* Send SMS
* Get Remaining balance### Setup
```
$ composer.phar install
```### Sending of SMS example usage
```
require './vendor/autoload.php';use ISMS\Recipient;
use ISMS\Message;
use ISMS\SMS;$recipient = new Recipient('9999999');
$message = new Message($recipient, 'message to send');
$sms = new SMS('username', 'password', $message);try
{
$sms->send();
}
catch (\Exception $e)
{
var_dump($e->getMessage(), $e->getCode());
}
```### Get remaining SMS balance
```
require './vendor/autoload.php';use ISMS\Balance;
$balance = new Balance('username', 'password');
try
{
echo $balance->get();
}
catch (\Exception $e)
{
var_dump($e->getMessage(), $e->getCode());
}
```