meletisf/laravel-zen

A package for providing the health state of the application in order to help load balancers determine the pool membership

1.1 2020-07-26 22:09 UTC

This package is auto-updated.

Last update: 2024-12-27 08:54:43 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Laravel Zen is a package that is used in conjunction with a load balancer's health check feature in order to ensure that no dysfunctional node attempts to serve the user.

Installation

composer require meletisf/laravel-zen

The package will automatically register itself. If you are using an older version of Laravel which does not support automatic registration then please add the following to your config/app.php:

    'providers' => [
        ...

        /*
         * Package Service Providers...
         */
        Meletisf\Zen\ZenServiceProvider::class,

        ...
    ];

    'aliases' => [
        ...

        Meletisf\Zen\Facades\Zen::class,

        ...
    ];

Issues

If something doesn't work as indented, or you want to suggest a change, please open an issue and i will do my best to respond as soon as possible.

TODO

  • Improve the test coverage
  • Add the ability to pass custom values to the check from the config file

Read the Wiki for more information on how to setup the package, use it along with a load balancer, and write your own checks.