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

ActiveLibrary[API Development](/categories/api)

xunextw/textmagic-sdk
=====================

A PHP wrapper for Textmagic API

0792↓50%PHP

Since Aug 31Pushed 2y agoCompare

[ Source](https://github.com/xuneXTW/textmagic-rest-php)[ Packagist](https://packagist.org/packages/xunextw/textmagic-sdk)[ RSS](/packages/xunextw-textmagic-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26743261?v=4)[Simon Schenker](/maintainers/xuneXTW)[@xuneXTW](https://github.com/xuneXTW)

---

Top Contributors

[![xuneXTW](https://avatars.githubusercontent.com/u/26743261?v=4)](https://github.com/xuneXTW "xuneXTW (3 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)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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