Download/clone this respository and then run below composer command in your project directory to install the required dependencies:
$ php composer.phar install
or run
$ composer install
Next create a MySQL database and import the db/twilio_sms.sql file in the created database, and configure the config/db.php with the right credentials
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=twilio_sms',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
];
Setup your twilio credentials in config/params.php
return [
'adminEmail' => '[email protected]',
'twilioSid' => 'AC1c4ea1a103xx2xxx53ba3d3b1xx40830', //replace with your sid
'twiliotoken' => '3xx460c3516xx8xx535f5b4181d00xx5', //replace with your token
'twilioNumber'=>'+19999123456'//replace with your Twilio phone number
];
Now you should be able to access the application through the following URL, assuming yii2-twilio-sms
is the directory directly under the Web root.
http://localhost/yii2-twilio-sms/web/