Looking to hire Laravel developers? Try LaraJobs

laravel-smpp maintained by saeedshoh

Description
SMS sending via SMPP protocol for Laravel framework.
Author
Last update
2022/04/26 12:28 (dev-main)
Links
Downloads
228
Tags

Comments
comments powered by Disqus

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.

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!');
    }
}

laravel-smpp