PHPackages                             opb/laravel-txtlocal - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. opb/laravel-txtlocal

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

opb/laravel-txtlocal
====================

Library to use the TxtLocal online messaging service with Laravel 4

1.0.1(12y ago)2362MITPHPPHP &gt;=5.3.0

Since Sep 2Pushed 12y ago3 watchersCompare

[ Source](https://github.com/opb/laravel-txtlocal)[ Packagist](https://packagist.org/packages/opb/laravel-txtlocal)[ RSS](/packages/opb-laravel-txtlocal/feed)WikiDiscussions master Synced 3d ago

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

\#Laravel 4 Txtlocal package

\##Version 1.0 update - May 2014

As of May 2014, this package has been upgraded, as Txtlocal have altered the way their API works. Major amendments:

- Making use of Guzzle 4 as opposed to cURL directly
- Removed functionality to process received text messages, as this is super simple to do in Laravel anyway, and this function brought nothing to the party.
- Better in-line documentation.

Having said all that, Txtlocal do provide their own PHP library, though it's not on composer. I may look into producing a straight PHP version (as opposed to Laravel-specific) which makes more use of the functionality that Txtlocal expose through their API. Currently we're only doing send SMS and getting the account balance.

Any queries, please get in touch.

To do:

- Add some tests for Travis

\###About TxtLocal is a UK based service providing incoming and outgoing SMS services. This library aims to provide access to some of these functions within the Laravel PHP framework, as well as serving as package development practice for myself!

Currently provides the following functions:

1. HTTP POST endpoint for incoming TxtLocal messagebox. (Txtlocal service which allows an SMS to be received by them and the details POSTed to a URL specified by you)
2. Send SMS function through TxtLocal API using cURL
3. Check the balance of SMS/MMS credits left on the account

\###Installation

Installation via composer...

Add `opb/laravel-txtlocal` to your composer requirements:

```
"require": {
    "opb/laravel-txtlocal": "~1"
}
```

Now run `composer update`

Once the package is installed, open your `app/config/app.php` configuration file and locate the `providers` key. Add the following line to the end:

```
'Opb\LaravelTxtlocal\LaravelTxtlocalServiceProvider',
```

Next, locate the `aliases` key and add the following line:

```
'LaravelTxtlocal' => 'Opb\LaravelTxtlocal\Facades\LaravelTxtlocal',
```

Finally, publish the default configuration (it will end up in `app/config/packages/opb/laravel-txtlocal/config.php`):

```
$ php artisan config:publish opb/laravel-txtlocal
```

\###Usage

1. Send an SMS to one or more numbers. See the package config file to set up API access.

    ```
    // test route to demo SMS sending
    Route::get('send', function()
    {
        $result = LaravelTxtlocal::send(array('447712345678'), 'This is a test message', 'SenderName');
        return $result;
    }
    ```
2. Check your balance of SMS and/or MMS credits

    ```
    // test route to get the account balance
    Route::get('checkbalance', function()
    {
        $result = LaravelTxtlocal::balance();
        return $result;
    }
    ```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

4441d ago

Major Versions

v0.2 → 1.0.02014-05-03

### Community

Maintainers

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

---

Top Contributors

[![opb](https://avatars.githubusercontent.com/u/778850?v=4)](https://github.com/opb "opb (29 commits)")

---

Tags

laraveltxtlocal

### Embed Badge

![Health badge](/badges/opb-laravel-txtlocal/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M846](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M529](/packages/laravel-boost)[spatie/laravel-health

Monitor the health of a Laravel application

87511.3M155](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M123](/packages/roots-acorn)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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