2017 © Pedro Peláez
 

library health-check

A Laravel package that performs health checks on your application

image

io-digital/health-check

A Laravel package that performs health checks on your application

  • Sunday, July 30, 2017
  • by io-digital
  • Repository
  • 3 Watchers
  • 2 Stars
  • 109 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 738 % Grown

The README.md

HealthCheck

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

HealthCheck provides your Laravel application with a /healthcheck endpoint to make it easier nice and easy to view the status of your application., (*2)

Install

supports package auto discovery for Laravel, (*3)

Via Composer, (*4)

``` bash $ composer require io-digital/health-check, (*5)


Add the ServiceProvider to your config/app.php providers array: ``` php IoDigital\HealthCheck\HealthCheckServiceProvider::class,

Then run the following command artisan command:, (*6)

$ php artisan vendor:publish --provider="IoDigital\HealthCheck\HealthCheckServiceProvider" 

This will publish the package config file to config/healthcheck.php., (*7)

You currently have the options to select which tests to perform:, (*8)

'ssl' => true,
'database' => true,
'application' => true,

//System information
'memory' => false,
'cpu_usage' => false,

Usage

The package automatically adds the /healthcheck endpoint to your application. All you need to do is hit that route., (*9)

For now the endpoint returns the following:, (*10)

  • 200 reponse
  • JSON object with the following layout:
{
    "application": {
        "message": "Application is running",
        "success": true
    },
    "database": {
        "message": "There was an error connecting to the database. Error has been logged.",
        "success": false
    },
    "ssl": {
        "message": "SSL is working.",
        "success": true 
    }
}

Future releases will hope to expand on what is tested., (*11)

Change log

Please see CHANGELOG for more information on what has changed recently., (*12)

Testing

bash $ composer test, (*13)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*14)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*15)

License

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

The Versions

30/07 2017

dev-master

9999999-dev https://github.com/io-digital/health-check

A Laravel package that performs health checks on your application

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel health check healthcheck iodigital

26/07 2017

v0.3

0.3.0.0 https://github.com/io-digital/health-check

A Laravel package that performs health checks on your application

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel health check healthcheck iodigital

26/07 2017

v0.2

0.2.0.0 https://github.com/io-digital/health-check

A Laravel package that performs health checks on your application

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel health check healthcheck iodigital

24/07 2017

v0.1

0.1.0.0 https://github.com/io-digital/health-check

A Laravel package that performs health checks on your application

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel health check healthcheck iodigital