PHPackages                             laravel-notification-channels/plivo - 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. laravel-notification-channels/plivo

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

laravel-notification-channels/plivo
===================================

Plivo SMS notifications driver for Laravel

v2.3(5y ago)916.1k↑22.7%20[1 issues](https://github.com/laravel-notification-channels/plivo/issues)[5 PRs](https://github.com/laravel-notification-channels/plivo/pulls)MITPHPPHP &gt;=7.2CI failing

Since Aug 15Pushed 3y ago6 watchersCompare

[ Source](https://github.com/laravel-notification-channels/plivo)[ Packagist](https://packagist.org/packages/laravel-notification-channels/plivo)[ Docs](https://github.com/laravel-notification-channels/plivo)[ RSS](/packages/laravel-notification-channels-plivo/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (6)Versions (12)Used By (0)

Plivo notifications channel for Laravel
=======================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/386bbb184feea065fefd980a80c7e50072535ad4cd00359c33f17305c6706f7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f706c69766f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/plivo)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/af09237cf72227bf0a3d918ca9304da0becfb1e73ac655b023bb2006ae25d31b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f706c69766f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/plivo)[![StyleCI](https://camo.githubusercontent.com/ce9ec0d270143bf185a58ada8cf4c7126ebb346a81488bc0372eadbb1b63282b/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353731353231382f736869656c64)](https://styleci.io/repos/65715218)[![SensioLabsInsight](https://camo.githubusercontent.com/d4216ceba8d7abd6e5aa6a336f6431adf2fd52e8fcfb9556f9cee50092266119/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f66346264393963342d303932632d346533362d613331392d3832366631343263316563342e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/f4bd99c4-092c-4e36-a319-826f142c1ec4)[![Quality Score](https://camo.githubusercontent.com/e3d178fee1afaf763578346007773e6843054e1ff2ab561238b6460ce271e9df/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f706c69766f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/plivo)[![Code Coverage](https://camo.githubusercontent.com/36268a263eafaf6213a63e44c3d29d2596149b4c2b591e495f7180e1569198fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f706c69766f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/plivo/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/880d61dadfed5cdd9a4a1f1da24642b10388157ed0128708d33985e6cb3fee71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f706c69766f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/plivo)

This package makes it easy to send SMS notifications using [Plivo](https://plivo.com) with Laravel 6.x and higher.

Contents
--------

[](#contents)

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

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

[](#installation)

Install the package via composer:

```
composer require laravel-notification-channels/plivo
```

### Setting up your Plivo service

[](#setting-up-your-plivo-service)

Log in to your [Plivo dashboard](https://manage.plivo.com/dashboard/) and grab your Auth Id, Auth Token and the phone number you're sending from. Add them to `config/services.php`.

```
// config/services.php
...
'plivo' => [
    'auth_id' => env('PLIVO_AUTH_ID'),
    'auth_token' => env('PLIVO_AUTH_TOKEN'),
    // Country code, area code and number without symbols or spaces
    'from_number' => env('PLIVO_FROM_NUMBER'),
],
```

Usage
-----

[](#usage)

Follow Laravel's documentation to add the channel your Notification class:

```
use Illuminate\Notifications\Notification;
use NotificationChannels\Plivo\PlivoChannel;
use NotificationChannels\Plivo\PlivoMessage;

public function via($notifiable)
{
    return [PlivoChannel::class];
}

public function toPlivo($notifiable)
{
    return (new PlivoMessage)
                    ->content('This is a test SMS via Plivo using Laravel Notifications!');
}
```

Add a `routeNotificationForPlivo` method to your Notifiable model to return the phone number:

```
public function routeNotificationForPlivo()
{
    // Country code, area code and number without symbols or spaces
    return preg_replace('/\D+/', '', $this->phone_number);
}
```

### Available methods

[](#available-methods)

- `content()` - (string), SMS notification body
- `from()` - (integer) Override default from number

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)

- [Sid K](https://github.com/koomai)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~325 days

Total

10

Last Release

1836d ago

Major Versions

0.0.1 → v1.0.02016-08-25

v1.1 → v2.0.02019-09-13

PHP version history (3 changes)0.0.1PHP &gt;=5.6.4

v2.0.0PHP &gt;=7.0

2.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

---

Top Contributors

[![koomai](https://avatars.githubusercontent.com/u/1274618?v=4)](https://github.com/koomai "koomai (15 commits)")[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (4 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (4 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (4 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (3 commits)")[![henokv](https://avatars.githubusercontent.com/u/17256654?v=4)](https://github.com/henokv "henokv (2 commits)")[![codemonkey76](https://avatars.githubusercontent.com/u/3654457?v=4)](https://github.com/codemonkey76 "codemonkey76 (1 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (1 commits)")

---

Tags

laravelplivoplivo-notifications-channelsms-notificationslaravelnotificationsplivo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-plivo/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-notification-channels-plivo/health.svg)](https://phpackages.com/packages/laravel-notification-channels-plivo)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

281770.7k1](/packages/laravel-notification-channels-pusher-push-notifications)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.1M15](/packages/laravel-notification-channels-twilio)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 9, 10, 11, 12, 13

1176.4k](/packages/salamwaddah-laravel-mandrill-driver)

PHPackages © 2026

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