PHPackages                             alhaji-aki/laravel-textcus - 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. alhaji-aki/laravel-textcus

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

alhaji-aki/laravel-textcus
==========================

Laravel wrapper for textcus sms api

1.0.4(5y ago)125MITPHPPHP &gt;=7.1

Since Dec 11Pushed 5y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Textcus notifications channel for Laravel
=========================================

[](#textcus-notifications-channel-for-laravel)

This package makes it easy to send notifications using [textcus](https://www.textcus.com/) with Laravel 6.x, 7.x &amp; 8.x.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Setting up the Textcus service](#setting-up-the-textcus-service)
- [Usage](#usage)
- [Testing](#testing)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require alhaji-aki/laravel-textcus
```

Setting up the textcus service
------------------------------

[](#setting-up-the-textcus-service)

Add your Textcus sender id and api key to your `config/services.php`:

```
// config/services.php
...
'textcus' => [
    'api_key' => env('TEXTCUS_API_KEY'),
    'sender_id' => env('TEXTCUS_SENDER_ID'),
],
...
```

Usage
-----

[](#usage)

To route Textcus notifications to the proper phone number, define a `routeNotificationForTextcus` method on your notifiable entity:

```
class User extends Authenticatable
{
    use Notifiable;

    /**
     * Route notifications for the Textcus channel.
     *
     * @param  \Illuminate\Notifications\Notification  $notification
     * @return string
     */
    public function routeNotificationForTextcus()
    {
        // NOTE: this is because you have to remove the + sign infront of the number in international formt
        return substr($this->mobile, 1);
    }
}
```

You can use the channel in your `via()` method inside the notification:

```
use Illuminate\Notifications\Notification;
use AlhajiAki\Textcus\Messages\TextcusMessage;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return ['textcus'];
    }

    public function toTextcus($notifiable)
    {
        return (new TextcusMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}
```

Testing
-------

[](#testing)

```
vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

5

Last Release

1889d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19788708?v=4)[Abdul Kudus](/maintainers/alhaji-aki)[@alhaji-aki](https://github.com/alhaji-aki)

---

Top Contributors

[![alhaji-aki](https://avatars.githubusercontent.com/u/19788708?v=4)](https://github.com/alhaji-aki "alhaji-aki (12 commits)")

---

Tags

laravelnotificationssmstextcus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alhaji-aki-laravel-textcus/health.svg)

```
[![Health](https://phpackages.com/badges/alhaji-aki-laravel-textcus/health.svg)](https://phpackages.com/packages/alhaji-aki-laravel-textcus)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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