Download the PHP package xcoorp/laravel-novu-notifications without Composer
On this page you can find all versions of the php package xcoorp/laravel-novu-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xcoorp/laravel-novu-notifications
More information about xcoorp/laravel-novu-notifications
Files in xcoorp/laravel-novu-notifications
Package laravel-novu-notifications
Short Description Novu Notifications channel for Laravel.
License MIT
Homepage https://github.com/xcoorp/laravel-novu-notifications
Informations about the package laravel-novu-notifications
Novu - Laravel Notification Channel
This package makes it easy to send notifications using Novu ``
Contents
- Installation
- Usage
- API Overview
- Novu Message
- Testing
- License
Installation
The Novu notification channel can be installed easily via Composer:
`
Usage
In order to send a notification via the Novu channel, you'll need to specify the channel in the via()
method of your notification:
``
API Overview
Novu Message
Namespace: NotificationChannels\Novu\NovuMessage
The NovuMessage
class encompasses an entire message that will be sent to the Novu API.
static create(?string $workflowId)
Instantiates and returns a newNovuMessage
instance, optionally pre-configuring it with the workflow idworkflowId(string $workflowId)
Set theworkflowId
of the message (Your novu workflow trigger id)to(array $to)
Array of recipient information likesubscriberId
,phone
, etc...toSubscriber(string $subscriberId)
Set thesubscriberId
of the recipientvariables(array $variables)
Set the variables (payload
) of the message. Those are your novu event variablesaddVariable(string $key, $value)
Add a single variable to the messagetoArray()
Returns the data that will be sent to the Novu API as an array
Testing
Functionality of this package is tested with Pest PHP. You can run the tests with:
Code of Conduct
In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
Please review the security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-novu-notifications with dependencies
guzzlehttp/guzzle Version ^7.0.1
illuminate/notifications Version ^10.0
illuminate/support Version ^10.0