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

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

guiigaspar/laravel-zenvia-channel
=================================

Provides Zenvia notification channel for Laravel

1.0.3(2y ago)122MITPHPPHP &gt;=7.2|^8.0

Since Aug 21Pushed 12mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Zenvia notifications channel for Laravel
========================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/affe8a61fdfcb244ddab6ef2e05871199c66af595d0a932a6a7a755658585395/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f677569696761737061722f6c61726176656c2d7a656e7669612d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guiigaspar/laravel-zenvia-channel)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/aa3105d356fefa4465a09916cfc7281bc215bac3277ccdef4665f1a6b796b7bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677569696761737061722f6c61726176656c2d7a656e7669612d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guiigaspar/laravel-zenvia-channel)

This package makes it easy to send notifications using [Zenvia](https://zenviasms.docs.apiary.io) with Laravel 7.x, 8.x, 9.x, 10.x, 11.x

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Configuration](#configuration)
    - [Advanced Configuration](#advanced-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 guiigaspar/laravel-zenvia-channel
```

### Configuration

[](#configuration)

Add your Zenvia Account, Password, and From Name (optional) to your `.env`:

```
ZENVIA_ACCOUNT=XYZ
ZENVIA_PASSWORD=XYZ
ZENVIA_FROM=XYZ # optional
```

### Advanced Configuration

[](#advanced-configuration)

Run `php artisan vendor:publish --provider="NotificationChannels\LaravelZenviaChannel\ZenviaServiceProvider"`

```
/config/zenvia-notification-channel.php

```

Usage
-----

[](#usage)

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

```
use NotificationChannels\LaravelZenviaChannel\ZenviaChannel;
use NotificationChannels\LaravelZenviaChannel\ZenviaSmsMessage;
use Illuminate\Notifications\Notification;

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

    public function toZenvia($notifiable)
    {
        return (new ZenviaSmsMessage())
            ->content("Your order {$notifiable->orderId} was approved!");
    }
}
```

In order to let your Notification know which phone are you sending/calling to, the channel will look for the `phone_number` attribute of the Notifiable model. If you want to override this behaviour, add the `routeNotificationForZenvia` method to your Notifiable model.

```
public function routeNotificationForZenvia()
{
    return '+5511912345678';
}
```

### Available Message methods

[](#available-message-methods)

#### ZenviaSmsMessage

[](#zenviasmsmessage)

- `id('')`: Accepts a ID to use as the notification identifier.
- `content('')`: Accepts a string value for the notification body.
- `schedule('')`: Accepts a string value for the notification schedule.

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)

- [Guilherme Gaspar](https://github.com/guiigaspar)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

756d ago

PHP version history (2 changes)1.0.1PHP ^8.1

1.0.3PHP &gt;=7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/42afb191abc52f8acb8db192b56b29dc718de7af5adabd17354dee127051402e?d=identicon)[guiigaspar](/maintainers/guiigaspar)

---

Top Contributors

[![guiigaspar](https://avatars.githubusercontent.com/u/28517560?v=4)](https://github.com/guiigaspar "guiigaspar (12 commits)")

---

Tags

laravelnotificationsmszenvia

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[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)[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[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)
