PHPackages                             abuhawwa/textlocal - 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. abuhawwa/textlocal

ActiveLibrary

abuhawwa/textlocal
==================

Textlocal SMS Channel for Laravel

016PHPCI failing

Since May 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/abuhawwa/textlocal)[ Packagist](https://packagist.org/packages/abuhawwa/textlocal)[ RSS](/packages/abuhawwa-textlocal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

textlocal.in
============

[](#textlocalin)

Using Textlocal offical [ PHP Class](https://api.textlocal.in/wrappers/php-in.zip), this package makes it easy sending SMS notifications in Laravel

Requirements
============

[](#requirements)

- Sign up for a free [Textlocal](https://www.textlocal.in/signup) account
- Create a new API Key in the settings section

Installation
============

[](#installation)

You can install the package via composer

```
composer require abuhawwa/textlocal
```

step: 1
=======

[](#step-1)

Add ServiceProvider to the providers array in your config/app.php

```
Abuhawwa\Textlocal\TextlocalServiceProvider::class,
```

step: 2
=======

[](#step-2)

To copy the distribution configuration file to your app's config directory **config/textlocal.php**

```
php artisan vendor:publish --tag=textlocal
```

step: 3
=======

[](#step-3)

Then update config/textlocal.php with your credentials. Alternatively, you can update your .env file with the following

```
TEXTLOCAL_KEY=""
TEXTLOCAL_SENDER=""
```

step: 4
=======

[](#step-4)

Now you can use the channel in your via() method inside the notification:

```
use Abuhawwa\Textlocal\TextlocalChannel;
use Illuminate\Notifications\Notification;

class PostApproved extends Notification
{
    public function via($notifiable)
    {
        return [TextlocalChannel::class];
    }

    public function toTextlocal($notifiable)
    {
        return "Your {$notifiable->service} account was approved!"
    }
}
```

step: 5
=======

[](#step-5)

In order to let your Notification know which phone are you sending to, the channel will look for the phone\_number attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForTextlocal method to your Notifiable model.

```
public function routeNotificationForTextlocal()
{
    return $this->mobile; // where 'mobile' is a field in users table;
}
```

License
=======

[](#license)

The [MIT](https://github.com/abuhawwa/textlocal/blob/master/LICENSE) License.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![abuhawwa](https://avatars.githubusercontent.com/u/60988755?v=4)](https://github.com/abuhawwa "abuhawwa (1 commits)")

### Embed Badge

![Health badge](/badges/abuhawwa-textlocal/health.svg)

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

PHPackages © 2026

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