danhanly / signalert-laravel by danhanly

A Laravel package for Signalert
15
2
0
Package Data
Maintainer Username: danhanly
Maintainer Contact: danhanly@gmail.com (Dan Hanly)
Package Create Date: 2015-08-31
Package Last Update: 2015-09-20
Home Page: http://danhanly.github.io/signalert/
Language: PHP
License: GPL-2.0
Last Refreshed: 2024-11-26 15:16:07
Package Statistics
Total Downloads: 15
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

Signalert for Laravel

Customisable & Extensible Notifications - Providing Alerts Exactly Where You Need Them

The following Readme details how to install, integrate and use this package within your Laravel installation. For more information on how Signalert works, please visit the Signalert site.

Installation

Include this package within your project's composer.json file:

{
    "require": {
        "signalert/laravel-package": "dev-master"
    }
}

Then run composer update signalert/laravel-package

Integration

To integrate this package with your Laravel project, first add the Service Provider to your config/app.php file under the providers array:

'providers' => [
    ...
    Signalert\ServiceProviders\SignalertServiceProvider::class,
];

Now add the Signalert Facade to your aliases, in the same file:

'aliases' => [
    ...
    'Signalert' => Signalert\Facades\Signalert::class,
];

Usage

Since this package works with Laravel Facades, you don't need to instantiate the object, as in the Signalert main package.

Signalert makes it simple to store messages:

Signalert::store('Notification Name', 'homepage');

Signalert makes it simple to render messages:

Signalert::render('homepage', 'error');

Signalert even makes it simple to retrieve messages as an array:

Signalert::fetch('homepage', 'error');

Customisation

Please refer to the Signalert site, for more information on how to extend and customise the package.