Insert following repository into composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Lemenio-com/sms-gateway-api-php-client.git"
}
]
Run command
$ composer require lemenio/sms-api-client
//client config
$config = [
'username' => 'test',
'password' => 'test',
'uri' => 'localhost',
'port' => 8080
];
//client initialization
$client = new \Lemenio\SmsApi\SmsApiClient(
$config['uri'],
$config['username'],
$config['password'],
$config['port']
);
//sending messages
$client->sendMessage(
'123456789', //phone number
'Test message' //message
);