Download the PHP package broken-titan/laravel-mparticle-channel without Composer
On this page you can find all versions of the php package broken-titan/laravel-mparticle-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download broken-titan/laravel-mparticle-channel
More information about broken-titan/laravel-mparticle-channel
Files in broken-titan/laravel-mparticle-channel
Package laravel-mparticle-channel
Short Description mParticle notification channel for Laravel.
License MIT
Informations about the package laravel-mparticle-channel
Laravel mParticle Notification Channel
This package makes it easy to integrate Laravel with mParticle for sending notifications.
Contents
- Installation
- Configuration
- Usage
- Testing
- Security
- Contributing
- Credits
- License
Installation
Install this package with Composer:
composer require broken-titan/laravel-mparticle-channel
Configuration
Before you may begin using the mParticle service, you must obtain authentication information from mParticle. The username and password must be assigned to MPARTICLE_USERNAME and MPARTICLE_PASSWORD in your .env file. You will also need to configure your mParticle pod using MPARTICLE_POD if you are not on the US1 pod.
By default the config file is merged with services.php and are accessible using config("services.mparticle").
Usage
Once installation is complete, you can send events to mParticle by creating standard Laravel notifications. For example:
You will also want to define a routeNotificationForMParticle() function on your Notifiable classes. They need to return an array with user identities that you want to send. For example:
Testing
Security
If you discover any security issues that would affect existing users, please email [email protected] instead of using the issue tracker.
Contributing
Feel free to contribute to the package.
License
The MIT License (MIT). Please see License File for more information.