PHPackages                             utcl/utelsms - 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. utcl/utelsms

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

utcl/utelsms
============

This package makes it easy to send notifications via UTel with Laravel

v1.0.2(2y ago)07MITPHPPHP &gt;=7.2.5

Since May 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/UTelUTCL/utelsms)[ Packagist](https://packagist.org/packages/utcl/utelsms)[ Docs](https://github.com/laravel-notification-channels/utelsms)[ RSS](/packages/utcl-utelsms/feed)WikiDiscussions main Synced 1mo ago

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

UTelSms notification channel for Laravel
========================================

[](#utelsms-notification-channel-for-laravel)

Contents
--------

[](#contents)

- [About](#about)
- [Installation](#installation)
- [Setting up the AfricasTalking service](#setting-up-the-utelsms-service)
- [Usage](#usage)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require utel/utelsms
```

The service provider gets loaded automatically.

### Setting up the UTelSms service

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

**Please note if you do not have a VALID sender\_ID remove "AT\_FROM" from your .env or leave it as ""**

```
UTCL_BASE_DOMAIN=""
UTCL_TOKEN=""
UTCL_FROM=""
```

To load them, add this to your `config/services.php` . This will load the AfricasTalking data from the `.env` file.file:

```
'utelsms' => [
    'baseDomain'      => env('UTCL_BASE_DOMAIN'),
    'token'           => env('UTCL_KEY'),
    'from'          => env('UTCL_FROM'),
]
```

Add the `routeNotificationForUTelSms` method on your notifiable Model. If this is not added, the `phone_number` field will be automatically used.

```
