PHP code example of franzose / laravel-smpp
1. Go to this page and download the library: Download franzose/laravel-smpp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
franzose / laravel-smpp example snippets
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!');
}
}