SMSFly Datasource for CakePHP

SMSFly api plugin

API Documentation

Check out SMSFly API Documentation

Abstract

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

CakePHP SMSFlySource Plugin with DataSource for SMS Fly service

Installation

Step 1: Clone or download HttpSource

Step 2: Clone or download to Plugin/SMSFlySource

cd my_cake_app/app git://github.com/imsamurai/cakephp-sms-fly-datasource.git Plugin/SMSFlySource

or if you use git add as submodule:

cd my_cake_app
git submodule add "git://github.com/imsamurai/cakephp-sms-fly-datasource.git" "app/Plugin/SMSFlySource"

then update submodules:

git submodule init
git submodule update

Step 1-2 alternative: use composer

Step 3: Add your configuration to database.php and set it to the model

:: database.php ::
public $smsFly = array(
  'datasource' => 'SMSFlySource.Http/SMSFlySource',
        'host' => 'sms-fly.com/api/api.php',
        'port' => 80
);

Then make use model SMSFly

Step 4: Load plugin

:: bootstrap.php ::
CakePlugin::load('HttpSource', array('bootstrap' => true, 'routes' => false));
CakePlugin::load('SMSFlySource');

Documentation

Please read HttpSource Plugin README