1. Go to this page and download the library: Download textlk/textlk-php 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/ */
textlk / textlk-php example snippets
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
}
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.