cxj / laravel-looking-glass-client
Easy to use Laravel client for the Looking Glass monitoring application.
Requires
- php: ^8.1
- spatie/laravel-webhook-server: ^3.4
Requires (Dev)
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2025-01-09 15:24:28 UTC
README
This is an easy to use Laravel client for the Looking Glass application status and health monitoring web application. This package makes it easy for any Laravel application to report any status or health data to Looking Glass.
Installation
You can install the package via composer:
composer require cxj/laravel-looking-glass-client
You can publish the config file with:
php artisan vendor:publish --tag="laravel-looking-glass-client-config"
This is the contents of the published config file:
return [ 'url' => env('LOOKING_GLASS_URL', 'localhost:8000/api/webhook'), 'secret' => env('LOOKING_GLASS_SECRET', 'shared-secret'), ];
Usage
$result = Cxj\Result::make('Test message from your application'); $glass = new Cxj\LookingGlass(); $glass->transmit('Name of Test or Status', $result);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.