PHPackages                             textflow/sms-api - 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. [API Development](/categories/api)
4. /
5. textflow/sms-api

ActiveLibrary[API Development](/categories/api)

textflow/sms-api
================

PHP library that helps you send SMS using TextFlow API

v1.6.4(2y ago)0285[1 issues](https://github.com/Skocimis/textflow-php/issues)MITPHPPHP ^7.4|^8

Since Jan 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Skocimis/textflow-php)[ Packagist](https://packagist.org/packages/textflow/sms-api)[ RSS](/packages/textflow-sms-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (14)Used By (0)

Textflow PHP client
===================

[](#textflow-php-client)

[![Packagist](https://camo.githubusercontent.com/0cea0fd30d4dbd1ef40fe75750a0b4bc6c9f3411ec54bcb8665d6c15fb56bc9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74657874666c6f772f736d732d6170692e737667)](https://packagist.org/packages/textflow/sms-api)[![Packagist](https://camo.githubusercontent.com/2ffcf2b309fb68dae4a27531a1bf942f804796aa9dd2bc895e42685829a17107/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74657874666c6f772f736d732d6170692e737667)](https://packagist.org/packages/textflow/sms-api)

Documentation
-------------

[](#documentation)

Here you will see just a sample usage of sending an SMS, for more instructions (including methods for user verification) check out our [official PHP documentation](https://docs.textflow.me/php).

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

[](#installation)

`composer require textflow/sms-api`

Sample Usage
------------

[](#sample-usage)

To send an SMS, you have to create an API key using the [Textflow dashboard](https://textflow.me/api). When you register an account, you automatically get an API key with one free SMS which you can send anywhere.

### Just send a message

[](#just-send-a-message)

```
require_once 'vendor/autoload.php';

$client = new TextFlowClient("YOUR_API_KEY");

$client->send_sms("+38112312341", "SMS body...");
```

### Handle send message request result

[](#handle-send-message-request-result)

```
$res = $client->send_sms("+38112312341", "SMS body...");

if ($res->ok)
    var_dump($res->data);
else
    var_dump($res->message);
```

### Example result object of the successfully sent message

[](#example-result-object-of-the-successfully-sent-message)

```
{
    "ok": true,
    "status": 200,
    "message": "Message sent successfully",
    "data": {
        "to": "+381611231234",
        "content": "Dummy message text...",
        "country_code": "RS",
        "price": 0.05,
        "timestamp": 1674759108881
    }
}
```

### Example result object of the unsuccessfully sent message

[](#example-result-object-of-the-unsuccessfully-sent-message)

```
{
    "ok": false,
    "status": 404,
    "message": "API key not found"
}
```

Getting help
------------

[](#getting-help)

If you need help installing or using the library, please check the [FAQ](https://textflow.me) first, and contact us at [support@textflow.me](mailto://support@textflow.me) if you don't find an answer to your question.

If you've found a bug in the API, package or would like new features added, you are also free to contact us!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~16 days

Recently: every ~38 days

Total

12

Last Release

1030d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/357be36e69dc3342ebfdb38f1fd401908dc3d97598001003b71a8b80fe2f2c41?d=identicon)[textflowadmin](/maintainers/textflowadmin)

---

Top Contributors

[![Skocimis](https://avatars.githubusercontent.com/u/24946127?v=4)](https://github.com/Skocimis "Skocimis (25 commits)")

---

Tags

apiapi-clientphpphp-libraryphp8simple-smssmssms-apisms-verificationtext-messageapismsapi clientsms apitext messagesms verificationsimple-sms

### Embed Badge

![Health badge](/badges/textflow-sms-api/health.svg)

```
[![Health](https://phpackages.com/badges/textflow-sms-api/health.svg)](https://phpackages.com/packages/textflow-sms-api)
```

###  Alternatives

[africastalking/africastalking

Official Africa's Talking PHP SDK

122557.6k10](/packages/africastalking-africastalking)[smsfactor/smsfactor-php-sdk

SMSFactor client library for PHP

15382.5k2](/packages/smsfactor-smsfactor-php-sdk)

PHPackages © 2026

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