Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gritzkoo/php-health-checker-example-app

A laravel project to show how simple use package gritzkoo/php-health-checker
https://github.com/gritzkoo/php-health-checker-example-app

Last synced: about 2 months ago
JSON representation

A laravel project to show how simple use package gritzkoo/php-health-checker

Awesome Lists containing this project

README

        

# PHP Health Checker example test project

This project was created to show how to use composer package `gritzkoo/php-health-checker` for

## Instructions

1. Clone this repository

```sh
git clone https://github.com/gritzkoo/php-health-checker-example-app
```

2. Available commands

```sh
make start # will bootstrap the project, needs docker docker-compose
make up # will start laravel and open browser to navigate in livenss and readiness actions
make down # stop all services
make test # runs laravel test, generate coverages, and open browse to see how to test integrations
```

## Extending gritzkoo/php-health-checker package

[app/Services/HealthCheckerService.php](app/Services/HealthCheckerService.php "example service")

## Example writing API integrations with test

[app/Api/FakeApi1/FakeApi1.php](app/Api/FakeApi1/FakeApi1.php "example api 1")

[app/Api/FakeApi2/FakeApi2.php](app/Api/FakeApi2/FakeApi2.php "example api 2")