PHPackages                             lucasgiovanny/laravel-notification-smsdev - 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. lucasgiovanny/laravel-notification-smsdev

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

lucasgiovanny/laravel-notification-smsdev
=========================================

Laravel notification package to use SMSDev SMS service.

v1.1.1(5y ago)27501[1 issues](https://github.com/lucasgiovanny/laravel-notfication-smsdev/issues)MITPHPPHP &gt;=7.2

Since May 16Pushed 3y agoCompare

[ Source](https://github.com/lucasgiovanny/laravel-notfication-smsdev)[ Packagist](https://packagist.org/packages/lucasgiovanny/laravel-notification-smsdev)[ RSS](/packages/lucasgiovanny-laravel-notification-smsdev/feed)WikiDiscussions master Synced 1mo ago

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

SMSDev notifications channel for Laravel
========================================

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

> THIS PROJECT IS NO LONGER BEING MAINTAINED

This package makes it easy to send notifications using [SMSDev](https://www.smsdev.com.br/) with Laravel.

Contents
--------

[](#contents)

- [Installation](#installation) - [Setting up the SMSDev service](#setting-up-the-SMSDev-service)
- [Usage](#usage) - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

This package can be installed via composer:

`composer require lucasgiovanny/laravel-notification-smsdev`

### Setting up the SMSDev service

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

1. Add the API key to the `services.php` config file:

```
// config/services.php

...

'smsdev'  => [

'api_key'  =>  env('SMSDEV_API_KEY')

],

...
```

2. Add you API Key from [SMSDev](https://www.smsdev.com.br) to your `.env` file

Usage
-----

[](#usage)

1. First you need to add the function `routeNotificationFor` in the `User` model:

```
	public function routeNotificationFor()
	{
		return $this->phone_number; //replace with the phone number field you have in your model
	}
```

2. Now, you can use this channel by adding `SmsDevChannel::class` to the array in the `via()` method of your notification class. You need to add the `toSmsdev()` method which should return a `new SmsDevMessage()` object.

```
