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

ActivePackage[API Development](/categories/api)

cloudlink/textmagic-laravel
===========================

A Laravel wrapper for the TextMagic PHP SMS API.

v1.0.6(7y ago)074.5k↓50%MITPHP

Since Aug 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/CloudLinkADI/TextMagic-Laravel)[ Packagist](https://packagist.org/packages/cloudlink/textmagic-laravel)[ Docs](https://github.com/CloudLinkADI/TextMagic-Laravel)[ RSS](/packages/cloudlink-textmagic-laravel/feed)WikiDiscussions master Synced 1mo ago

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

[![CloudLink](https://camo.githubusercontent.com/11f6c8f277933e1c23fbee708eacb21a8da6a3ec828c85a36452574a6a67b0fd/68747470733a2f2f63646e2e636c6f75642e6c696e6b2f696d672f636c2d6c6f676f2e706e67)](https://cloud.link)

[ ![Latest Stable Version](https://camo.githubusercontent.com/bcb6297d98aa3388c0522b573a1cabcf246e1de745d607157ce6143388f008b3/68747470733a2f2f706f7365722e707567782e6f72672f636c6f75646c696e6b2f746578746d616769632d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/cloudlink/textmagic-laravel)[ ![Total Downloads](https://camo.githubusercontent.com/e3bd0ea1887bc118d02d89c2f2bce652dabc628ac1435605b8d79cd481b38c84/68747470733a2f2f706f7365722e707567782e6f72672f636c6f75646c696e6b2f746578746d616769632d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/cloudlink/textmagic-laravel)[ ![License](https://camo.githubusercontent.com/0e9bb7c6f039ed289661f6b790221b176a60a79183afcdab1fb983604b90fb53/68747470733a2f2f706f7365722e707567782e6f72672f636c6f75646c696e6b2f746578746d616769632d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/cloudlink/textmagic-laravel)[ ![StyleCI](https://camo.githubusercontent.com/47ab2684185e545ba853f8c663fcb455e3fbea811437c4271ef3137099ead3c9/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f373534383938362f736869656c64)](https://github.styleci.io/repos/7548986/shield)

TextMagic-Laravel
=================

[](#textmagic-laravel)

The TextMagic-Laravel SMS API PHP wrapper provides a convenient Laravel wrapper around the TextMagic PHP api. See

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

[](#requirements)

The PHP wrapper has the following requirements:

- Laravel &gt;=5.0

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

[](#installation)

You can install the package via composer:

```
composer require cloudlink/textmagic-laravel:^1.0

```

Registering the Application
---------------------------

[](#registering-the-application)

**Laravel &lt; 5.5**
After you have installed package, open your Laravel config file config/app.php and add the following lines.

In the $providers array add the service providers for this package.

```
CloudLink\TextMagic\TextMagicServiceProvider::class
```

Add the facade of this package to the $aliases array.

```

'TextMagic' => CloudLink\TextMagic\TextMagic::class
```

**Laravel &gt;= 5.5**
No need to add the classes are they are automatically registed

As you're using Laravel 5.5+ the TextMagicServiceProvider &amp; TextMagic Facade will be automatically registered for you.

Configuration
-------------

[](#configuration)

Run artisan vendor:publish command to publish the config file

```
$ php artisan vendor:publish --provider="CloudLink\TextMagic\TextMagicServiceProvider" --tag=config

```

Set the config values for username and api-key either by editing the config file, or by setting the TEXTMAGIC\_USERNAME and TEXTMAGIC\_API\_KEY variables in your .env file.

Usage Instructions
------------------

[](#usage-instructions)

### Code Example

[](#code-example)

```
$client = new TextMagic();
try {
    $result = $client->messages->send(
        [
            'text' => 'Hello from TextMagic PHP',
            'phones' => implode(', ', ['99900000','99900001'])

    );
}
catch (\Exception $e) {
    //Error Handling Code Here
}
echo $result['id'];
```

### API Reference

[](#api-reference)

Refer to these links for a list of available functions

-
-

### Additional Suppported Methods

[](#additional-suppported-methods)

Not all TextMagic functions are available through the vendor provided PHP library. The following is a list of endpoints that are supported through this library.

**endpoint: /lookups**

```
$result = $client->lookups->lookup('999000000');
```

**Other endpoints will be added based on request - if you need something that's not currently available let us know**

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

2824d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3869355?v=4)[Andrew Coghlan](/maintainers/acoghlan)[@acoghlan](https://github.com/acoghlan)

---

Top Contributors

[![acoghlan](https://avatars.githubusercontent.com/u/3869355?v=4)](https://github.com/acoghlan "acoghlan (37 commits)")[![sunny-kashyap](https://avatars.githubusercontent.com/u/20138115?v=4)](https://github.com/sunny-kashyap "sunny-kashyap (10 commits)")

---

Tags

apilaravel-packagesmstextmagiccloudlink

### Embed Badge

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

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

###  Alternatives

[kyon147/laravel-shopify

Shopify package for Laravel to aide in app development

473252.9k](/packages/kyon147-laravel-shopify)

PHPackages © 2026

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