Flowroute SMS API using Yii 1 with PHP

In this Post We Will Explain About is Flowroute SMS API using Yii 1 with PHP With Example and Demo.Welcome on infinityknow.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to flowroute sms API Step By StepExample

In this post we will show you Best way to implement how to send sms in yii framework, hear for yii2 sms gateway SDKwith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Flowroute Introduces SMS Capabilities

The Flowroute API is organized like as a REST API. Our simple API has like as a resource-oriented Rest URLs, supports simple POST and GET HTTP Verbs, and Like responds with HTTP Like as a(200,400 etc..) Status Codes. All Flowroute API requests functions and responses data, including simple errors, will be represented as JSON or array objects.

READ :  Angular form ng submit Directive

we can use the PHP Flowroute API to manage mobile or telephone numbers to send SMS Gateway, SMS messaging, and set the credentials port orders (currently in simple beta versions). We have two simple API versions As well as which differ in simple type of the capability and the Flowroute authentication functions used.

SDK

Installation

First of all, open a simple terminal your window and clone the SDK.

git clone https://github.com/flowroute/flowroute-numbers-php.git

second then Switch to the create a newly-created flowroute-numbers-php Folders. as well as Download Composer in the same Folders. and then The Numbers SDK PHP with Any PHP Frameworks for PHP comes with a simple include or cmd to update composer.json listing the project of the PHP dependencies means main requirements and other metadata.Simple CMD to Run the following Commands:

READ :  Multiple Skype Accounts - Windows desktop Run Two Skype

php composer.phar install

The following Very Easy Way to shows an example of a single simple PHP file scripts that imports all the libs and instantiates all main three Controllers:

 
<?php
//must be include any PHP Project using Composer
require_once('vendor/autoload.php');

//Include All the controllers methods 
use FlowrouteNumbersLib\Controllers\InboundRoutesController;
use FlowrouteNumbersLib\Controllers\PurchasablePhoneNumbersController;
use FlowrouteNumbersLib\Controllers\TelephoneNumbersController;
use FlowrouteNumbersLib\APIException;


//here create a new objects using PHP
$irc = new InboundRoutesController();

//second objects
$pnc = new PurchasablePhoneNumbersController();

//third objects
$tnc = new TelephoneNumbersController();

use FlowrouteNumbersLib\Models\BillingMethod;
use FlowrouteNumbersLib\Models\Route;

Flowroute SMS Set Credentials

Switch to the simple srcdirectory. In this path to call Configuration.php, replace simple accessKey:secretKey both key set with your API simple credentials means setting for devloper accounts from the offical sites Flowroute Manager.

<?php
//Simple namespace include FlowrouteNumbersLib
namespace FlowrouteNumbersLib;

//create a flowroute setting global class
class Configuration {
//PHP Flowroute SMS Gateway Basic Curl URL
public static $BASEURI = 'https://api.flowroute.com/v1';
public static $username = 'AccessKey'; //set your AccessKey
public static $password = 'SecretKey'; //set your SecretKey
}

Methods

READ :  AngularJS - window resize and angular get element height in controller

The functions to accepts the All List limit and simple page parameters which we can learn step by step more about in the web Flowroute API reference. The following simple limit example limits the static arguments pass number of NPAs returned to 3:

#List Available NPAs
//all the listAvailableNPAs here to get data
$response = $pnc->listAvailableNPAs(3, 2);

Example

I hope you have Got What is how to send sms in yii framework And how it works.I would Like to have FeadBack From My Blog(infinityknow.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(infinityknow.com) Are Most Always Welcome.