PHP code example of mani / yii2-twiliosms

1. Go to this page and download the library: Download mani/yii2-twiliosms library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mani / yii2-twiliosms example snippets


php composer.phar 

			use yii\helpers\Html;
			use yii\widgets\ActiveForm;

			/* @var $this yii\web\View */
			/* @var $model app\models\Sendsms */
			/* @var $form ActiveForm */
			$this->title = 'Send OTP';
			$this->params['breadcrumbs'][] = $this->title;
			
 if(Yii::$app->session->hasFlash('successMessage')){
 } 
 if(Yii::$app->session->hasFlash('failureMessage')){
 } 
 $form = ActiveForm::begin(); 
 ActiveForm::end();