michaelvienna/laravailability

Periodically scheduled command, which counts its own instatiations and (optionally) the httprequest it sends to app.

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.0.1 2022-08-05 12:51 UTC

This package is auto-updated.

Last update: 2023-11-05 15:31:28 UTC


README

simple laravel availability monitor with zero mandatory configuration

This laravel service provider monitores if your laravel app is callable via cli and (optionally) via web.

It contains a periodically scheduled command, which counts its own instatiations and (optionally) the httprequest it sends to app.

Requirements

Laravel >8.0 with activated scheduling. To activate scheduling define the common cron-job:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Installation and usage

To use it, simply run

composer require michaelvienna/laravailability

and wait some minutes.

Then run

php artisan laravailability:show

to view first results.

To enable the web version of results, do the following:

php artisan vendor:publish
  • choose michaelvienna/laravailability
  • edit config/laravailability.php
  • set "show.web" to true

Then send your browser to https://[your-project-url]/laravailability/show

to see the results via web.

Per default the monthly rotating data files are located in

storage/app/laravailability