PHPackages                             textme/sms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. textme/sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

textme/sms
==========

Class for sending sms by textme servies

1.0.1(6y ago)0194MITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 6y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Text Me Class
=============

[](#text-me-class)

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install Textme.

```
composer require textme/sms
```

Usage
-----

[](#usage)

### Create a connection

[](#create-a-connection)

```
Textme\SMS::init($username, $password, $source = '(optinal)');
```

### Create a message

[](#create-a-message)

```
Textme\SMS::addMessage($numbers, $message, $source = '(optinal)');
```

You must set a $source in init or in adding massage if its set in init its was be for all massages but in massage its only for this message.

- The $numbers can be many type of array or string:

```
$number = '0500000000';
$numners = ['0500000000','0500000001','0500000002'];
$numbers = ['phone'=> '0500000000', 'id' => '1'];
$numbers = [
             ['phone'=> '0500000000', 'id' => '1'],
             ['phone'=> '0500000001', 'id' => '2'],
];
```

- The $message can type of array or string:

```
$message = 'Your message here';
$message = [
            'template' => 'Your message here, yours {{var}} here',
            'var' => 'demo for var use',
];
```

### Create a messages

[](#create-a-messages)

```
Textme\SMS::addMessages($array);
```

- This $array must include keys numbers,message or its can be array inside array demo:
- The $message can type of array or string:

```
$array = [
   'numbers' => '0500000000',
   'message' => 'test message',
];
$array  = [
             [
                'numbers' => '0500000000',
                'message' => 'test message',
             ],
             [
                'numbers' => '0500000001',
                'message' => 'test message 2',
             ],
];
```

Its work in same format like addMessage its work with templates for this need add key template to message and key for evry var.

### Get balance

[](#get-balance)

For get the balance of your sms you can use:

```
Textme\SMS::getBalance();
```

### Get response

[](#get-response)

For get the last response of system (send or balance):

```
Textme\SMS::getResponse();
```

### Create object of class

[](#create-object-of-class)

You can create object of this class and use its all like object

```
$sms = new Textme\SMS($username, $password, $settings = ['(optinal)']);
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

2378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2c20d80f087ef5bb095acff89ed34781df5b0077079a4343b109f2666b5bc15?d=identicon)[pol292](/maintainers/pol292)

---

Top Contributors

[![pol292](https://avatars.githubusercontent.com/u/2454053?v=4)](https://github.com/pol292 "pol292 (9 commits)")

### Embed Badge

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

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)

PHPackages © 2026

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