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)1207↓33.3%11MITPHP

Since Feb 4Pushed 11mo 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 1mo ago

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

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 64% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

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

825d 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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