All Projects → lakshmaji → plivo

lakshmaji / plivo

Licence: other
This package enables to send message or OTP to any mobile.This package uses external plivo api.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to plivo

Botkit
Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
Stars: ✭ 10,555 (+52675%)
Mutual labels:  twilio, sms
Simple Sms
Send and receive SMS messages with Laravel
Stars: ✭ 181 (+805%)
Mutual labels:  twilio, sms
dj-twilio-sms
Twilio SMS Integration for Django
Stars: ✭ 15 (-25%)
Mutual labels:  twilio, sms
module-twilio
Magento 2 Customer SMS notifications with Twilio
Stars: ✭ 29 (+45%)
Mutual labels:  twilio, sms
Twilio Csharp
Twilio C#/.NET Helper Library for .NET Framework 3.5+ and supported .NET Core versions
Stars: ✭ 541 (+2605%)
Mutual labels:  twilio, sms
actions-sms
Send an SMS through GitHub Actions
Stars: ✭ 108 (+440%)
Mutual labels:  twilio, sms
Gotwilio
Twilio library for Go (golang).
Stars: ✭ 328 (+1540%)
Mutual labels:  twilio, sms
botkit-sms
Twilio Programmable SMS implementation for Botkit.
Stars: ✭ 18 (-10%)
Mutual labels:  twilio, sms
Twilio Java
A Java library for communicating with the Twilio REST API and generating TwiML.
Stars: ✭ 371 (+1755%)
Mutual labels:  twilio, sms
Spoke
mass-contact text/SMS distribution tool
Stars: ✭ 367 (+1735%)
Mutual labels:  twilio, sms
org-mode-sms-inbox
Harvest org-mode todos with Dropbox, Twilio, and IFTTT.
Stars: ✭ 19 (-5%)
Mutual labels:  twilio, sms
Faxserver
Send and Receive Faxes Using The Twilio Programmable Fax API.
Stars: ✭ 92 (+360%)
Mutual labels:  twilio, sms
twilito
A tiny, zero dependency Ruby helper for sending text messages with Twilio 💬
Stars: ✭ 16 (-20%)
Mutual labels:  twilio, sms
sample-template-nodejs
A template repository serving as the base for new Twilio sample apps
Stars: ✭ 16 (-20%)
Mutual labels:  twilio, sms
PokerTexter
SMS App for Poker Odds. Runs on Flask + Twilio + Heroku.
Stars: ✭ 17 (-15%)
Mutual labels:  twilio, sms
laravel-authy
Rinvex Authy is a simple wrapper for @authy TOTP API, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.
Stars: ✭ 35 (+75%)
Mutual labels:  twilio, sms
sms blitz
Send SMS messages through multiple different providers
Stars: ✭ 29 (+45%)
Mutual labels:  twilio, plivo
sms-bot
an SMS bot built with Google sheets and Twilio
Stars: ✭ 61 (+205%)
Mutual labels:  twilio, sms
React Native Phone Verification
The best React Native example for phone verification (an alternative to Twitter Digits).
Stars: ✭ 332 (+1560%)
Mutual labels:  twilio, sms
Authy
Rinvex Authy is a simple wrapper for @Authy TOTP API, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.
Stars: ✭ 34 (+70%)
Mutual labels:  twilio, sms

Laravel - plivo

docs on web

WHAT IT IS?

  • This package is used to send sms to any mobile number.
  • This uses Plivo! API.
  • It requires AuthId and AuthToken, they can be generated by registering @at Plivo
    • after registrion click on Dashboard ,there you will be able to see authid and authtoken.
    • sample snapshot: Image of plivo dashboard

Version

1.2.4

Compatibility

Laravel version Plivo version
5.4 1.2.4
5.2 1.2.4
5.1 1.2.4
5.0 1.2.4
4.2 1.1.0

INSTALLATION

To install this package you will need:

  • Laravel 4 or 5 (see compatibility table)
  • PHP

Install via composer ( you can install this package issuing the following command from the terminal )

composer require lakshmaji/plivo

Laravel INTEGRATION

Once this has finished, you will need to add the service provider to the providers array in your app.php config as follows:

 Lakshmaji\Plivo\PlivoServiceProvider::class,

Next, also in the app.php config file, under the aliases array, you are required to add the Plivo facade.

'Plivo' => Lakshmaji\Plivo\Facade\Plivo::class,

Finally, you will want to publish the config using the following command:

	php artisan vendor:publish  

In the plivo.php configuration file we need to enter the Plivo API key and ID

Don't forget to set a auth id and auth secret keys in the config file!, you can get them at Plivo dashboard.

SENDING SMS

<?php

Use Plivo;

$params = array(
	'src' => '1111111111',
	'dst' => '91999999999',
	'text' => 'Hello world!'
);

Plivo::sendSMS($params);

Sent SMS history

<?php

Use Plivo;

// Lists all messages history
$list_all_messages = Plivo::allMessages();

// Lists the filtered messages (pagination)
$params = array(
	'limit' => 2,
	'offset' => 2,
	'message_direction' => 'inbound',
	'message_state' => 'delivered',
);
$list_some_messages = Plivo::allMessages($params);

Get Message data

<?php

Use Plivo;

// Lists all messages history
$list_all_messages = Plivo::allMessages();

// Lists the filtered messages (pagination)
$params = array(
	'limit' => 2,
	'offset' => 2,
	'message_direction' => 'inbound',
	'message_state' => 'delivered',
);
$list_some_messages = Plivo::allMessages($params);

MISCELLANEOUS

<?php

  Use Plivo;

  $params = array(
	  'country_iso' => 'IN'
  );
  
  // List the pricing plans available in a country by using country ISO code
  Plivo::pricing($params);

EXAMPLE CODE FOR Laravel

<?php 
// Define namespace
namespace App\Http\Controllers;

// Include required namespaces
use Illuminate\Routing\Controller as BaseController;
use Plivo;

class Controller extends BaseController
{
    public function sendSMS()
    {
		$params = array(
			'src' => '1111111111',
			'dst' => '91999999999',
			'text' => 'Hello world!'
		);
		
		$response = Plivo::sendSMS($params);
		
}

LICENSE

MIT

Todo

  • Need to add voice support
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].