Download the PHP package sebj54/lb-healthcheck-php without Composer

On this page you can find all versions of the php package sebj54/lb-healthcheck-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lb-healthcheck-php

lb-healthcheck-php

Load balancer health check library and examples for PHP. Optimized for use with HOSTING Cloud Load Balancer but should work with just about any deployment.

Installation

We recommend you install the LB Health Check functions with the Composer dependency manager. Run this bash command in your project's root directory to download and install the latest stable version into your project's vendor/ directory.

Next, require the Composer autoloader into your PHP application:

And you're ready to go.

Usage

This library is intended to be used most often with custom health check logic that you write and tests the critical components of your application. Examples of things to test would be:

You can find examples of how to implement a health check script using your own custom logic in the examples/php folder.

If you're just wanting to get started quickly or if you're only concerned about the web server responding to requests and executing PHP scripts, perhaps the bare minimum implementation is for you:

Drop that in your webroot as health.php and if PHP is working, that single call to \HOSTING\LBHealthCheck::success() will complete and return the necessary HTTP status code and string to inform the load balancer to keep the server as an active member of the cluster. If the webserver or PHP processing is broken, it will return an error or timeout which will cause the load balacner to eject the server from the load balancing group.

Load Balancer Configuration

Here is what that Cloud Load Balancer configuration would look like in the HOSTING Customer Portal.

HOSTING Cloud Load Balancer Example Config


All versions of lb-healthcheck-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sebj54/lb-healthcheck-php contains the following files

Loading the files please wait ....