and this config file:
'providers' => [
'example' => [
'host' => '10.120.2.41',
'port' => 10010,
'timeout' => 90,
'login' => 'test',
'password' => 'test'
]
],
<?php
namespace App\Http\Controllers;
use LaravelSmpp\SmppServiceInterface;
class SmsController extends Controller {
protected $smpp;
public function __construct(SmppServiceInterface $smpp)
{
$this->smpp = $smpp;
}
public function send()
{
$this->smpp->sendOne('211912230091', 'SMS message');
}
}
try to use this library: https://github.com/alexandr-mironov/php-smpp
the example in the readme works perfectly for me, you can add something like this in your config file:
good luck