2017 © Pedro Peláez
 

library laravel-smpp

SMS sending via SMPP protocol for Laravel framework.

image

franzose/laravel-smpp

SMS sending via SMPP protocol for Laravel framework.

  • Friday, June 23, 2017
  • by franzose
  • Repository
  • 2 Watchers
  • 10 Stars
  • 3,673 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 7 Forks
  • 0 Open issues
  • 3 Versions
  • 21 % Grown

The README.md

, (*1)

Laravel SMPP

This package is a tiny wrapper for the onlinecity/php-smpp library. It provides a basic SMPP interface and implementation for the Laravel framework., (*2)

Installation

You can install Laravel SMPP using Composer command:, (*3)

$ composer require franzose/laravel-smpp

Then you need to add LaravelSmpp\LaravelSmppServiceProvider::class to your providers array in the config/app.php and copy default configuration by invoking $ php artisan vendor:publish command., (*4)

Usage

You can use the service pretty straightforward and inject dependency in your controller:, (*5)

<?php

namespace App\Http\Controllers;

class SmsController extends Controller
{
    public function send(SmppServiceInterface $smpp)
    {
        // One number
        $this->smpp->sendOne(1234567890, 'Hi, this SMS was send via SMPP protocol');

        // Multiple numbers
        $this->smpp->sendBulk([1234567890, 0987654321], 'Hi!');
    }
}

However it is better to abstract your SMS sending service from the SMPP implementation by defining a SMPP-compatible service interface., (*6)

The Versions

23/06 2017

dev-master

9999999-dev

SMS sending via SMPP protocol for Laravel framework.

  Sources   Download

The Requires

 

The Development Requires

laravel sms smpp onlinecity

23/06 2017

v1.1

1.1.0.0

SMS sending via SMPP protocol for Laravel framework.

  Sources   Download

The Requires

 

The Development Requires

laravel sms smpp onlinecity

09/06 2016

v1.0

1.0.0.0

SMS sending via SMPP protocol for Laravel framework.

  Sources   Download

The Requires

 

The Development Requires

laravel sms smpp onlinecity