labsmobilesms1 Send SMS all over the world using LabsMobile platform and their HTTP/POST API.

  1. Requirements
  2. Usage
  3. Resources

Send SMS with a single line of code. You can send SMS all over the world using LabsMobile platform and their HTTP/POST API.

Requirements

  • Yii 1.1

  • A LabsMobile user account. Go to www.labsmobile.com to signup.

Usage

  1. Copy the LabsMobileSMS folder into /protected/extensions

  2. Add the following lines into you configuration file (ex. /config/main.php)

...
'components' => array(
        ...
        'sms' => array(
            'class'=>'ext.LabsMobileSms.LabsMobileSms',
            'LMaccount_username'=>'{YOUR USERNAME}',
            'LMaccount_password'=>'{YOUR PASSWORD}',
            'LMaccount_clientapi'=>'{YOUR API CLIENT}',
        ),
  1. Now you can send SMS with the following code:
Yii::app()->sms->send(array('to'=>'34609033161', 'message'=>'Hello world!'));

or check the credits of your LabsMobile account:

Yii::app()->sms->get_balance();

Resources

0 0
1 follower
284 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: Borislav
Created on: Jul 14, 2015
Last updated: 9 years ago

Downloads

show all

Related Extensions