It is a PHP package that will serve as a gateway to communicate with Text.lk REST APIs.
composer require textlk/textlk-php
use TextLK\SMS\TextLKSMSMessage;
$textLKSMS = new TextLKSMSMessage();
$textLKSMS
->recipient("94712345678") // Replace with the recipient's phone number.
->message("Hello, this is a test message.")
->senderId("YOUR_SENDER_ID") // (optional) TEXTLK_SMS_SENDER_ID can be added in .env
->apiKey('YOUR_API_KEY_HERE') // (optional) TEXTLK_SMS_API_KEY can be added in .env
$textLKSMS->send();
public function toTextlk($notifiable)
{
return (new \TextLK\SMS\TextLKSMSMessage)
->recipient("94712345678") // Replace with the recipient's phone number.
->message('Hello, this is a test message.')
->senderId('YOUR_SENDER_ID') // optional. TEXTLK_SMS_SENDER_ID can be added in .env
->apiKey('YOUR_API_KEY_HERE') // optional. TEXTLK_SMS_API_KEY can be added in .env
}