saeedshoh / laravel-smpp
There is no license information available for the latest version (1.5) of this package.
SMS sending via SMPP protocol for Laravel framework.
1.5
2022-04-26 10:28 UTC
Requires
- ext-mbstring: *
- illuminate/support: ^5|^6|^7|^8|^9
- php-smpp/php-smpp: 1.2
README
This package is a tiny wrapper for the onlinecity/php-smpp library. It provides a basic SMPP interface and implementation for the Laravel framework.
Installation
You can install Laravel SMPP using Composer command:
$ composer require saeedshoh/laravel-smpp
<?php namespace App\Http\Controllers; class SmsController extends Controller { public function send(SmppServiceInterface $smpp) { // One number $this->smpp->sendOne(112222900, 'Hi, this SMS was send via SMPP protocol'); // Multiple numbers $this->smpp->sendBulk([1234567890, 0987654321], 'Hi!'); } }