jhmilan/squalo-laravel

Send messages to Squalo with Laravel easily

0.2.1 2016-07-26 23:23 UTC

This package is not auto-updated.

Last update: 2024-11-21 03:09:44 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Just a small Laravel5 to send data to Squalo (squalo.jmilan.net).

Install

Via Composer

$ composer require jhmilan/squalo-laravel

Setup

Add the service provider to your config.app.php

Jhmilan\SqualoLaravel\SqualoLaravelServiceProvider::class,

Add the facade to your config.app.php

'Squalo' => Jhmilan\SqualoLaravel\Facades\SqualoLaravel::class,

Publish the config file (a new config/SqualoLaravel.php file will be created, populate your .env as per the variables in the file)

php artisan vendor:publish --provider="Jhmilan\SqualoLaravel\SqualoLaravelServiceProvider"

Usage

Send images to Squalo very easily. Just use the Squalo facade and call any of the following methods:

Squalo::emergency('My critical message');
Squalo::alert('My alert message');
Squalo::critical('My critical message');
Squalo::error('My error message');
Squalo::warning('My warning message');
Squalo::notice('My notice message');
Squalo::info('My info message');
Squalo::debug('My debug message');

To-do

This package is still WIP, no time for tests or good docs yet! sorry

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email jhmilan@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.