PHPackages                             textlk/textlk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. textlk/textlk-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

textlk/textlk-php
=================

PHP SDK for Text.lk - SMS Gateway Sri Lanka

v2.0.4(2y ago)1300↓40%12MITPHP

Since Feb 4Pushed 1y agoCompare

[ Source](https://github.com/textlk/textlk-php)[ Packagist](https://packagist.org/packages/textlk/textlk-php)[ RSS](/packages/textlk-textlk-php/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)DependenciesVersions (11)Used By (2)

textlk-php
==========

[](#textlk-php)

Text.lk SMS Gateway Sri Lanka - PHP SDK
=======================================

[](#textlk-sms-gateway-sri-lanka---php-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/d129908b38d7a5ebf00260db5bc81305dd3879a0b51d94ccc694fc4e667e542e/68747470733a2f2f706f7365722e707567782e6f72672f746578746c6b2f746578746c6b2d7068702f762f737461626c65)](https://packagist.org/packages/textlk/textlk-php)[![Total Downloads](https://camo.githubusercontent.com/e99e9d62648f13e7fcddfe63a69a8f3962ae975191a031309a81f7033fa34e7a/68747470733a2f2f706f7365722e707567782e6f72672f746578746c6b2f746578746c6b2d7068702f646f776e6c6f616473)](https://packagist.org/packages/textlk/textlk-php)[![Latest Unstable Version](https://camo.githubusercontent.com/02baf8a68e8bf04ebb218fedf2e4f64166d985d529921463cd8407fb39352540/68747470733a2f2f706f7365722e707567782e6f72672f746578746c6b2f746578746c6b2d7068702f762f756e737461626c65)](https://packagist.org/packages/textlk/textlk-php)[![License](https://camo.githubusercontent.com/0935203b37bf03e1726bd475d5e5be14914d5203d70f80c628ff1f8bc6f2650f/68747470733a2f2f706f7365722e707567782e6f72672f746578746c6b2f746578746c6b2d7068702f6c6963656e7365)](https://packagist.org/packages/textlk/textlk-php)

It is a PHP package that will serve as a gateway to communicate with Text.lk REST APIs.

Installation
------------

[](#installation)

```
composer require textlk/textlk-php
```

Pure PHP
========

[](#pure-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();
```

Laravel
=======

[](#laravel)

```
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
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

10

Last Release

871d ago

Major Versions

v1.0.4 → v2.0.02024-02-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/158798933?v=4)[Text.lk - SMS Gateway Sri Lanka](/maintainers/textlk)[@textlk](https://github.com/textlk)

---

Top Contributors

[![chamaraindrajith](https://avatars.githubusercontent.com/u/51538345?v=4)](https://github.com/chamaraindrajith "chamaraindrajith (26 commits)")

---

Tags

2facomposerlaravelotpphprest-apisinhalasmssms-apisms-gatewaysms-gateway-sri-lankasms-messagessms-notificationssms-servicesms-verificationsri-lankasrilankatamiltexttextlk

### Embed Badge

![Health badge](/badges/textlk-textlk-php/health.svg)

```
[![Health](https://phpackages.com/badges/textlk-textlk-php/health.svg)](https://phpackages.com/packages/textlk-textlk-php)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
