deegitalbe / laravel-trustup-io-health-checker
Health checker package for trustup apps
Installs: 2 093
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^8.1
- spatie/cpu-load-health-check: ^1.0
- spatie/laravel-health: ^1.11
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-11-14 18:14:32 UTC
README
Allow to quickly monitor a website.
Installation
You can install the package via composer:
composer require deegitalbe/laravel-trustup-io-health-checker
You have to push the configuration file :
php artisan vendor:publish --tag="health-config"
Inside the generated health.php
config file, inside the 'result_stores'
, just enable the InMemoryHealthResultStore::class
and disable other storages :
'result_stores' => [ /* Spatie\Health\ResultStores\EloquentHealthResultStore::class => [ 'model' => Spatie\Health\Models\HealthCheckResultHistoryItem::class, 'keep_history_for_days' => 5, ], Spatie\Health\ResultStores\CacheHealthResultStore::class => [ 'store' => 'file', ], Spatie\Health\ResultStores\JsonFileHealthResultStore::class => [ 'disk' => 's3', 'path' => 'health.json', ], */ Spatie\Health\ResultStores\InMemoryHealthResultStore::class, ],
Usage
You can fetch the in real-time result on the route /health-json
Credits
License
The MIT License (MIT). Please see License File for more information.