PHP Classes
elePHPant
Icontem

SmartSMS PHP Send SMS Message: Deliver SMS messages using the SmartSMS API

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-06-09 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 238 This week: 1All time: 7,835 This week: 315Up
Version License PHP version Categories
smartsms 1.0.0Custom (specified...5PHP 5, Wireless and Mobile, Chat
Description Author

This package can deliver SMS messages using the SmartSMS API.

It can send HTTP request messages to the SmartSMS API Web server to execute several types of operations of with their SMS Web services.

Currently it can send SMS messages to given numbers and get balance of the current SmartSMS API.

  Performance   Level  
Name: Josiah Ovye Yahaya <contact>
Classes: 3 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 322717 in Nigeria Nigeria
Week rank: 164 Up3 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 1x

 

Details

Smartsms

A flexible PHP library for smartsms solutions

Installation

composer require coderatio/smartsms

Usage

require('vendor/autoload.php');

use Coderatio\Smartsms\Smartsms;

$config['token'] = env('SMARTSMS_TOKEN'); 
// Or 
$config['token'] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

$sms = Smartsms::init($config)
    ->to('XXX-XX-XXXX-XXXX')
    ->from('Coderatio')
    ->message('I have installed the library.')
    ->send();
    

Response

The library returns json and object response type.

$sms->asObject(); //Returns response as object

$sms->response(); //Returns as json.

Todo

  1. Send sms from files (txt, pdf, docs, .xls)
  2. Test (Phpunit)
  Files folder image Files  
File Role Description
Files folder imageFoundation (1 file)
Files folder imageServices (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file config.php Conf. Configuration script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  Foundation  
File Role Description
  Plain text file Configurator.php Class Class source

  Files folder image Files  /  Services  
File Role Description
  Plain text file Smartsms.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:238
This week:1
All time:7,835
This week:315Up