PHP SMS API Sending SMS via the CAMOO SMS gateway
Clone or download
Pull request Compare This branch is 18 commits ahead, 9 commits behind epinett:master.
camoo Update README.md
Documentation page addes
Latest commit f41e66a Jun 1, 2018
Permalink
Failed to load latest commit information.
config Release Version 3.0.4 Jan 5, 2018
examples Reduce dependencies Jan 1, 2018
src - Typo fix Jun 1, 2018
.gitignore Camoo SMS Lib version 3 Dec 31, 2017
LICENSE PSR Update Oct 24, 2017
README.md Update README.md Jun 1, 2018
VERSION.txt Version update Jun 1, 2018
composer.json Reduce dependencies Jan 1, 2018

README.md

N|Solid

PHP SMS API Sending SMS via the CAMOO SMS gateway

Requirement

This library needs minimum requirement for doing well on run.

  • Sign up for a free CAMOO SMS account
  • Ask CAMOO Team for new access_key for developers
  • CAMOO SMS API client for PHP requires version 5.6.x and above

Installation via Composer

Package is available on Packagist, you can install it using Composer.

composer require camoo/sms

Or go to

Camoo-SMS-API-Latest Release

And download the full version

Edit sr/config/app.php
	return [
	   'local_login' => true,
	   'App' => [
	      'api_key' => '592595095', // add your api_key
	      'api_secret' => '79b89479847b9798479494984', // add your api_secret
	      'response_format' => 'json',// json or xml
	    ]
	];
OPTION local_login,
`true` : The API should use the credentials from the file app.php
`false` : You want to pass your credentials on the fly for each request

Quick Examples

Sending a SMS
	#$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET'); // in case local_login is false or config/app is missing
	$oMessage = \Camoo\Sms\Message::create();
	$oMessage->from ='YourCompany';
	$oMessage->to = '+237612345678';
	$oMessage->datacoding ='auto'; // possible values: plain,text,unicode or auto
	$oMessage->type ='sms';
	$oMessage->message ='Hello Kmer World! Déjà vu!';

	var_dump($oMessage->send());
Send the same SMS to many recipients
- Per request, a max of 50 recipients can be entered.
	#$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET'); // in case local_login is false or config/app.php is missing
	$oMessage = \Camoo\Sms\Message:create();
	$oMessage->from ='YourCompany';
	$oMessage->to =['+237612345678', '+237612345679', '+237612345610', '+33689764530'];
	$oMessage->datacoding ='auto';
	$oMessage->type ='sms';
	$oMessage->message ='Hello Kmer World! Déjà vu!';

	var_dump($oMessage->send());

Resources