Search by

patrickfischer / laravel-healthcheck

zero0cool0

Package info

github.com/zero0cool0/laravel-healthcheck

pkg:composer/patrickfischer/laravel-healthcheck

Fund package maintenance!

zero0cool0/

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.4.1 2026-10-08 04:40 UTC

This package is auto-updated.

Last update: 2026-10-08 04:41:42 UTC


README

A simple Laravel package that simplifies Docker health check.

Installation

Install it with composer:

composer require patrickfischer/laravel-healthcheck

Update your Docker health check script to curl the newly registered route /ping, or whatever you declare in config('laravel-healthcheck.route') The following is an example health check script, please update your own implementation:

#!/usr/bin/env bash
set -e

if [ $(curl -o /dev/null -L -s -w "%{http_code}\n" http://localhost/ping) = "200" ]; then
    exit 0
else
    exit 1
fi    

License

MIT