imsamurai/cakephp-sms-fly-datasource

CakePHP SMSFlySource Plugin with DataSource

1.2.0 2014-09-04 08:13 UTC

This package is not auto-updated.

Last update: 2024-04-22 22:43:58 UTC


README

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