PHPackages                             textmagic/textmagic-rest-php-v2 - 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. textmagic/textmagic-rest-php-v2

ActiveLibrary[HTTP &amp; Networking](/categories/http)

textmagic/textmagic-rest-php-v2
===============================

PHP SDK for TextMagic API

3.0.43870(5mo ago)21689[1 PRs](https://github.com/textmagic/textmagic-rest-php-v2/pulls)MITPHPPHP ^8.1

Since Oct 22Pushed 5mo ago7 watchersCompare

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

READMEChangelogDependencies (5)Versions (42)Used By (0)

TextMagic PHP SDK
=================

[](#textmagic-php-sdk)

This library provides you with an easy way of sending SMS and receiving replies by integrating the TextMagic SMS Gateway into your PHP application.

What Is TextMagic?
------------------

[](#what-is-textmagic)

TextMagic's application programming interface (API) provides the communication link between your application and TextMagic's SMS Gateway, allowing you to send and receive text messages and to check the delivery status of text messages you've already sent.

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

[](#requirements)

- **PHP 8.1** or later
- **Composer** for dependency management
- **cURL** extension
- **JSON** extension
- **mbstring** extension

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

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

Install the SDK using [Composer](https://getcomposer.org/):

```
composer require textmagic/textmagic-rest-php-v2
```

Or add it to your `composer.json`:

```
{
    "require": {
        "textmagic/textmagic-rest-php-v2": "^3.0.43870"
    }
}
```

Then run:

```
composer install
```

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
require_once(__DIR__ . '/vendor/autoload.php');
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
