jhmilan/squalo-laravel

使用 Laravel 轻松向 Squalo 发送消息

0.2.1 2016-07-26 23:23 UTC

This package is not auto-updated.

Last update: 2024-09-26 02:24:02 UTC


README

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

这是一个小巧的 Laravel5 库,用于将数据发送到 Squalo (squalo.jmilan.net)。

安装

通过 Composer

$ composer require jhmilan/squalo-laravel

配置

将服务提供者添加到 config/app.php 配置文件中

Jhmilan\SqualoLaravel\SqualoLaravelServiceProvider::class,

将外观添加到 config/app.php 配置文件中

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

发布配置文件(将创建一个新的 config/SqualoLaravel.php 文件,根据文件中的变量配置您的 .env 文件)

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

使用方法

非常容易地将图像发送到 Squalo。只需使用 Squalo 外观并调用以下方法之一

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');

待办事项

此包仍在开发中,目前没有时间进行测试或编写良好的文档!抱歉

变更日志

有关最近更改的详细信息,请参阅 CHANGELOG

测试

$ composer test

贡献

请参阅 CONTRIBUTINGCONDUCT 了解详细信息。

安全

如果您发现任何安全相关的问题,请通过电子邮件 jhmilan@gmail.com 而不是使用问题跟踪器。

鸣谢

许可

MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件