laravel-notification-channels/plivo
Larablocks Analysis
Compatibility
Trusted maintainerlaravel-notification-channels/plivo works with Laravel 6, 7 and 8 (latest release v2.3, Jun 17, 2021), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.
Laravel 5 in earlier releases.
- Trusted maintainer: laravel-notification-channels publishes 46 packages on Larablocks, with 3,497,300 downloads a month between them.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 6, 7 and 8, past end of life since Jan 24, 2023
- No release in the last 12 months (last: Jun 17, 2021)
- 13 downloads a month (needs 10,000)
- 8 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 17, 2021.
- No releases in the last 12 months.
- First released: Aug 15, 2016.
- Monthly downloads: 13, down 84% from six months ago.
- 6 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require laravel-notification-channels/plivo |
|
| Latest Version: | v2.3 |
| PHP: | >=7.2 |
| Laravel: | 6 · 7 · 8 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Sep 8, 2022 |
| Links: | GitHub · Packagist |
Plivo notifications channel for Laravel
This package makes it easy to send SMS notifications using Plivo with Laravel 6.x and higher.
Contents
Installation
Install the package via composer:
composer require laravel-notification-channels/plivo
Setting up your Plivo service
Log in to your Plivo 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
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
content()- (string), SMS notification bodyfrom()- (integer) Override default from number
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email sid@koomai.net instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.3 | >=7.2 | ~6.0 || | MIT | |
| v2.2.0 | >=7.2 | ~5.5 || | MIT | |
| 2.1.0 | >=7.2 | ~5.5 || | MIT | |
| v2.0.0 | >=7.0 | ~5.5 || | MIT | |
| v1.1 | >=5.6.4 | 5.3.*| | MIT | |
| v1.0.3 | >=5.6.4 | 5.3.*| | MIT | |
| v1.0.2 | >=5.6.4 | 5.1.*| | MIT | |
| v1.0.1 | >=5.6.4 | 5.3.* | MIT | |
| v1.0.0 | >=5.6.4 | 5.3.* | MIT | |
| 0.0.1 | >=5.6.4 | ^5.3@dev | MIT |