imsamurai / cakephp-sms-fly-datasource
CakePHP SMSFlySource Plugin with DataSource
Installs: 12
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- composer/installers: *
- imsamurai/http-source: 1.2.*
This package is not auto-updated.
Last update: 2024-11-05 01:02:23 UTC
README
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