PHPackages                             js0nvr/textmagic - 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. js0nvr/textmagic

ActiveLibrary[API Development](/categories/api)

js0nvr/textmagic
================

A PHP wrapper for Textmagic API

v1.0(9y ago)03491MITPHPPHP &gt;=5.2.1

Since May 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jonasvr/textmagic-rest-php)[ Packagist](https://packagist.org/packages/js0nvr/textmagic)[ Docs](http://github.com/textmagic/textmagic-rest-php)[ RSS](/packages/js0nvr-textmagic/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Synopsis
--------

[](#synopsis)

The TextMagic SMS API PHP wrapper can save you a lot of time, as it includes all the necessary API commands and tests. It only takes a few seconds to download it from GitHub and to install it into your own app or software. After installation, you’ll then be able to send text messages.

Code Example
------------

[](#code-example)

```
$client = new TextmagicRestClient('', '');
$result = ' ';
try {
    $result = $client->messages->create(
        array(
            'text' => 'Hello from TextMagic PHP',
            'phones' => implode(', ', array('99900000'))
        )
    );
}
catch (\Exception $e) {
    if ($e instanceof RestException) {
        print '[ERROR] ' . $e->getMessage() . "\n";
        foreach ($e->getErrors() as $key => $value) {
            print '[' . $key . '] ' . implode(',', $value) . "\n";
        }
    } else {
        print '[ERROR] ' . $e->getMessage() . "\n";
    }
    return;
}
echo $result['id'];

```

Installation Instructions
-------------------------

[](#installation-instructions)

### Quick Installation

[](#quick-installation)

Run the following command to install the TextMagic PHP wrapper using composer: a package management system used to install and manage software packages written in PHP:

```
composer require textmagic/sdk

```

### Manual Installation

[](#manual-installation)

You can also install the TextMagic PHP wrapper from the GitHub repository using git. Run the following commands:

```
git clone git://github.com/textmagic/textmagic-rest-php.git
cd textmagic-rest-php

```

Requirements
------------

[](#requirements)

The PHP wrapper has the following requirements:

- PHP 5.2.1 or higher
- phpunit 4.5 or higher

API Reference
-------------

[](#api-reference)

-
-

License
-------

[](#license)

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

3637d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2731cec9ac36739006af70d35d359c46136a388135c2cf49c5f380825be04b09?d=identicon)[js0n](/maintainers/js0n)

---

Top Contributors

[![jonasvr](https://avatars.githubusercontent.com/u/6528702?v=4)](https://github.com/jonasvr "jonasvr (4 commits)")[![dmitry-textmagic](https://avatars.githubusercontent.com/u/9207618?v=4)](https://github.com/dmitry-textmagic "dmitry-textmagic (1 commits)")[![Rasp09](https://avatars.githubusercontent.com/u/14049717?v=4)](https://github.com/Rasp09 "Rasp09 (1 commits)")

---

Tags

apismstextmagic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/js0nvr-textmagic/health.svg)

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

###  Alternatives

[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1102.8M18](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1101.9M5](/packages/plivo-php-sdk)[melipayamak/php

A PHP wrapper for melipayamak's web services

3294.4k5](/packages/melipayamak-php)[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)
