PHPackages                             luisdalmolin/laravel-zenvia-channel - 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. luisdalmolin/laravel-zenvia-channel

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

luisdalmolin/laravel-zenvia-channel
===================================

Send SMS messages with Zenvia

1.1.0(5y ago)18380.3k↓23.3%8[1 issues](https://github.com/luisdalmolin/laravel-zenvia-channel/issues)MITPHPPHP &gt;=5.6.4CI failing

Since Sep 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/luisdalmolin/laravel-zenvia-channel)[ Packagist](https://packagist.org/packages/luisdalmolin/laravel-zenvia-channel)[ Docs](https://github.com/luisdalmolin/laravel-zenvia-channel)[ RSS](/packages/luisdalmolin-laravel-zenvia-channel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (8)Used By (0)

Zenvia Notifications Channel for Laravel 5
==========================================

[](#zenvia-notifications-channel-for-laravel-5)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2330f193c27cc3b41e51d6a3f881070b9a75b63bfabe693bd066629e2e052d1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c75697364616c6d6f6c696e2f6c61726176656c2d7a656e7669612d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luisdalmolin/laravel-zenvia-channel)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/56838e72fd4e432c03a66e92bdb1685dfb6717ec921264e3fd050e31d1ca6b62/68747470733a2f2f706f7365722e707567782e6f72672f6c75697364616c6d6f6c696e2f6c61726176656c2d7a656e7669612d6368616e6e656c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/luisdalmolin/laravel-zenvia-channel)

This package makes it easy to send Zenvia SMS messages using [Zenvia API](http://docs.zenviasms.apiary.io) with Laravel 5.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require luisdalmolin/laravel-zenvia-channel
```

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\Zenvia\ZenviaServiceProvider::class,
],
```

Configuration
-------------

[](#configuration)

Configure your credentials:

```
// config/services.php
...
'zenvia' => [
    'from'    => env('ZENVIA_FROM', 'Laravel Notification Channels'),
    'pretend' => env('ZENVIA_PRETEND', false),
    'conta'   => env('ZENVIA_CONTA', 'YOUR ACCOUNT'),
    'senha'   => env('ZENVIA_SENHA', 'YOUR PASSWORD')
],
...
```

Usage
-----

[](#usage)

You can now use the channel in your `via()` method inside the Notification class.

```
use NotificationChannels\Zenvia\ZenviaChannel;
use NotificationChannels\Zenvia\ZenviaMessage;
use Illuminate\Notifications\Notification;

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

    public function toZenvia($notifiable)
    {
        return ZenviaMessage::create()
            ->from('Laravel') // optional
            ->to($notifiable->phone) // your user phone
            ->content('Your invoice has been paid')
            ->id('your-sms-id');
    }
}
```

### Routing a message

[](#routing-a-message)

You can either send the notification by providing with the chat id of the recipient to the to($phone) method like shown in the above example or add a routeNotificationForZenvia() method in your notifiable model:

```
...
/**
 * Route notifications for the Telegram channel.
 *
 * @return int
 */
public function routeNotificationForZenvia()
{
    return $this->phone;
}
...
```

### Available Message methods

[](#available-message-methods)

- `to($phone)`: (integer) Recipient's phone.
- `content('message')`: (string) SMS message.
- `from('Sender')`: (string) Sender's name.
- `id('sms-id')`: (string) SMS ID.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Luís Dalmolin](https://github.com/luisdalmolin)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% 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 ~255 days

Recently: every ~231 days

Total

7

Last Release

1984d ago

Major Versions

0.4.0 → 1.0.02020-04-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/57e405b52d482c9de35b17f299d2745e8e68d9d9951aec64854f2d7fa53110bf?d=identicon)[luisdalmolin](/maintainers/luisdalmolin)

---

Top Contributors

[![luisdalmolin](https://avatars.githubusercontent.com/u/403446?v=4)](https://github.com/luisdalmolin "luisdalmolin (31 commits)")[![davidrtpereira](https://avatars.githubusercontent.com/u/20539715?v=4)](https://github.com/davidrtpereira "davidrtpereira (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luisdalmolin-laravel-zenvia-channel/health.svg)

```
[![Health](https://phpackages.com/badges/luisdalmolin-laravel-zenvia-channel/health.svg)](https://phpackages.com/packages/luisdalmolin-laravel-zenvia-channel)
```

###  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/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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