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

This package is auto-updated.

Last update: 2024-04-14 06:45:48 UTC


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

laravel-smpp