https://github.com/astrotomic/notifynder-sender-twilio
Twilio Sender for the Notifynder package.
https://github.com/astrotomic/notifynder-sender-twilio
laravel notification-api notification-service notifications notifynder package php sms twilio twilio-sender
Last synced: 5 months ago
JSON representation
Twilio Sender for the Notifynder package.
- Host: GitHub
- URL: https://github.com/astrotomic/notifynder-sender-twilio
- Owner: Astrotomic
- License: mit
- Archived: true
- Created: 2017-01-06T10:35:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T13:35:22.000Z (over 9 years ago)
- Last Synced: 2026-01-14T14:37:38.333Z (5 months ago)
- Topics: laravel, notification-api, notification-service, notifications, notifynder, package, php, sms, twilio, twilio-sender
- Language: PHP
- Homepage: http://notifynder.info/
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notifynder 4 Twilio Sender - Laravel 5
[](https://github.com/astrotomic/notifynder-sender-twilio/releases)
[](https://raw.githubusercontent.com/astrotomic/notifynder-sender-twilio/master/LICENSE)
[](https://github.com/astrotomic/notifynder-sender-twilio/issues)
[](https://packagist.org/packages/astrotomic/notifynder-sender-twilio)
[](https://styleci.io/repos/78197904)
[](https://codeclimate.com/github/Astrotomic/notifynder-sender-twilio)
[](https://astrotomic.slack.com)
[](https://notifynder.signup.team)
Documentation: **[Notifynder Docu](http://notifynder.info)**
-----
## Installation
### Step 1
```
composer require astrotomic/notifynder-sender-twilio
```
### Step 2
Add the following string to `config/app.php`
**Providers array:**
```
Astrotomic\Notifynder\NotifynderSenderTwilioServiceProvider::class,
```
### Step 3
Add the following array to `config/notifynder.php`
```php
'senders' => [
'twilio' => [
'sid' => '',
'token' => '',
'store' => false, // wether you want to also store the notifications in database
],
],
```
Register the sender callback in your `app/Providers/AppServiceProvider.php`
```php
setCallback(TwilioSender::class, function (SmsMessage $message, Notification $notification) {
return $message
->from('0123456789')
->to('9876543210')
->text($notification->getText());
});
}
}
```