Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default extension checker config fix #264

Open
wants to merge 120 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
67bb99c
Allow adding HTTP headers to requests
antonioribeiro Oct 10, 2020
fecebbe
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
9312b0d
Merge pull request #219 from antonioribeiro/analysis-peVpoW
antonioribeiro Oct 10, 2020
ca80c00
Merge pull request #220 from antonioribeiro/feature/http-headers
antonioribeiro Oct 10, 2020
921fffa
Add SSL certificates checker
antonioribeiro Oct 10, 2020
da185f9
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
9236fe1
Merge pull request #221 from antonioribeiro/analysis-L3DLno
antonioribeiro Oct 10, 2020
a6d0925
Merge pull request #222 from antonioribeiro/feature/ssl-certificates
antonioribeiro Oct 10, 2020
f0ad360
Add URL to error message when HTTP is not able to connect
antonioribeiro Oct 10, 2020
cefdd77
Fix Composer command for Symfony 5
antonioribeiro Oct 10, 2020
87dfde8
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
ae651e4
Merge pull request #223 from antonioribeiro/analysis-1bvD0P
antonioribeiro Oct 10, 2020
b280fbc
Add support for API checks via the HTTP checker and add example
antonioribeiro Oct 10, 2020
11e9a89
Merge branch 'master' of https://github.com/antonioribeiro/health
antonioribeiro Oct 10, 2020
40ff168
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
1a8f21d
Merge pull request #224 from antonioribeiro/analysis-vQRGKg
antonioribeiro Oct 10, 2020
d123fe6
Change key
antonioribeiro Oct 10, 2020
b7c563d
Merge branch 'master' of https://github.com/antonioribeiro/health
antonioribeiro Oct 10, 2020
78d72ca
Allow using URL parameter at the same level of method
antonioribeiro Oct 10, 2020
3f90f1c
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
1634afa
Merge pull request #225 from antonioribeiro/analysis-d0rpEw
antonioribeiro Oct 10, 2020
716fd11
Fix scheduler
antonioribeiro Oct 10, 2020
5c62b4f
Merge branch 'master' of https://github.com/antonioribeiro/health
antonioribeiro Oct 10, 2020
9c92b52
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
c761173
Merge pull request #226 from antonioribeiro/analysis-x04pA0
antonioribeiro Oct 10, 2020
57f347d
Fix assignment on old PHP versions
antonioribeiro Oct 10, 2020
8d3d625
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
ec885fe
Merge pull request #227 from antonioribeiro/analysis-nNlpAy
antonioribeiro Oct 10, 2020
8edb3fd
Fix comma on old PHP versions
antonioribeiro Oct 10, 2020
015f2b4
Merge branch 'master' of https://github.com/antonioribeiro/health
antonioribeiro Oct 10, 2020
92e6f8b
Fix for old PHPs
antonioribeiro Oct 10, 2020
871627c
Apply fixes from StyleCI
antonioribeiro Oct 10, 2020
f155b60
Merge pull request #228 from antonioribeiro/analysis-vQRGjO
antonioribeiro Oct 10, 2020
6432ccb
Add examples
antonioribeiro Oct 10, 2020
a6fea02
Merge branch 'master' of https://github.com/antonioribeiro/health
antonioribeiro Oct 10, 2020
d3a109e
Run openssl s_client to get real information about certificate
antonioribeiro Oct 14, 2020
d74314c
Apply fixes from StyleCI
antonioribeiro Oct 14, 2020
2ef0cb0
Merge pull request #229 from antonioribeiro/analysis-bQyKY4
antonioribeiro Oct 14, 2020
0445b50
Update changelog
antonioribeiro Oct 14, 2020
96264e0
Merge branch 'master' of https://github.com/antonioribeiro/health
antonioribeiro Oct 14, 2020
5c51206
Switch from SweetAlert to SweetAlert2
limonte Oct 15, 2020
72aba02
delete packege-lock.json
limonte Oct 15, 2020
cf27879
Fix Swal import
antonioribeiro Oct 17, 2020
5061e38
Merge pull request #230 from limonte/switch-from-sweetalert-to-sweeta…
antonioribeiro Oct 17, 2020
f137eda
Upgrade packages
antonioribeiro Oct 17, 2020
6475965
Merge branch 'switch-from-sweetalert-to-sweetalert2'
antonioribeiro Oct 17, 2020
ba6b1f5
Fix build badge
antonioribeiro Oct 17, 2020
daeeb29
Improve badges format
antonioribeiro Oct 17, 2020
3ef329a
Update list of checkers
antonioribeiro Oct 17, 2020
48a373c
Update composer.json
qschmick Oct 27, 2020
4b23602
Updated artisan check command to return non-zero exit code on failures
qschmick Oct 27, 2020
63121b5
Updated PHPDOC and styling
qschmick Oct 27, 2020
3d0f767
Arrow functions are only usable in php 7.4; Project is listed as 7.1+
qschmick Oct 27, 2020
50d5bde
fixing stlying
qschmick Oct 27, 2020
d55ae3d
Merge pull request #233 from qschmick/fix/remove-arrow-functions
antonioribeiro Oct 27, 2020
26112b6
Merge pull request #232 from qschmick/chore/artisan-check-exit-code
antonioribeiro Oct 27, 2020
a3d9de0
Merge pull request #231 from qschmick/patch-1
antonioribeiro Oct 27, 2020
d258239
Add new checkers
antonioribeiro Oct 27, 2020
6905b9a
Upgrade packages
antonioribeiro Oct 27, 2020
93f3977
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 29, 2021
585193a
Add basic support for NPRE standard exit codes
keevan Sep 7, 2021
0aace44
Update State column message to allow for the listing of OK and CRITICAL
keevan Sep 7, 2021
5e939e3
Update format of health:panel display
keevan Sep 7, 2021
a6fd4c7
Update /heath/string with filtering and result status support
keevan Sep 7, 2021
9d6a63a
Add summary web response format by providing a format param to the url
keevan Sep 7, 2021
adf3622
Merge pull request #237 from antonioribeiro/dependabot/add-v2-config-…
antonioribeiro Oct 23, 2021
b62c1a2
Apply fixes from StyleCI
antonioribeiro Oct 23, 2021
ec323c6
Merge pull request #242 from antonioribeiro/analysis-lKAJwW
antonioribeiro Oct 23, 2021
645149d
Merge catalyst-add-npre-supported-return-values
antonioribeiro Oct 23, 2021
4215353
Apply fixes from StyleCI
antonioribeiro Oct 23, 2021
7e2e9c5
Merge pull request #243 from antonioribeiro/analysis-ajA10V
antonioribeiro Oct 23, 2021
42910f0
Add total time to console panel
antonioribeiro Oct 23, 2021
25af9e0
Correctly format total time float
antonioribeiro Oct 23, 2021
de07809
Apply fixes from StyleCI
antonioribeiro Oct 23, 2021
a59ef85
Merge pull request #244 from antonioribeiro/analysis-Vrm9Ng
antonioribeiro Oct 23, 2021
9fb91dd
Merge pull request #245 from antonioribeiro/feature/add-total-time-to…
antonioribeiro Oct 23, 2021
12c6e1b
Refactor Security Check checker to use a new tool
antonioribeiro Oct 23, 2021
16652d2
Apply fixes from StyleCI
antonioribeiro Oct 23, 2021
3b44bc0
Merge pull request #246 from antonioribeiro/analysis-lKAJjJ
antonioribeiro Oct 23, 2021
117bdd0
Merge pull request #247 from antonioribeiro/feature/refactor-security…
antonioribeiro Oct 23, 2021
d083259
Don't try to save nulls to database runtime column
antonioribeiro Oct 23, 2021
4dd807a
Merge pull request #248 from antonioribeiro/fix/empty-elapsed-time
antonioribeiro Oct 23, 2021
1eb18b3
Add checkout.com API checker
antonioribeiro Oct 23, 2021
d0e27c6
Merge pull request #249 from antonioribeiro/feature/add-checkout-com-…
antonioribeiro Oct 23, 2021
83fe1b5
Check for debug mode only on production
antonioribeiro Oct 23, 2021
5dc5eda
Merge pull request #250 from antonioribeiro/feature/debug-mode-produc…
antonioribeiro Oct 23, 2021
55a9979
Fix security issues
antonioribeiro Oct 23, 2021
96e84a1
Merge pull request #251 from antonioribeiro/fix/security-issues
antonioribeiro Oct 23, 2021
81dd70c
Prevent routes registering if they are already cached
antonioribeiro Oct 24, 2021
250e593
Merge pull request #252 from antonioribeiro/feature/improve-routes-speed
antonioribeiro Oct 24, 2021
fe0cf5a
Coding style
antonioribeiro Oct 24, 2021
9c7d797
Apply fixes from StyleCI
antonioribeiro Oct 24, 2021
816b426
Run tests via Github actions
antonioribeiro Oct 24, 2021
593af1f
Disable checkoutcom checks
antonioribeiro Oct 24, 2021
0e122bb
Fix tests
antonioribeiro Oct 24, 2021
82769a7
Apply fixes from StyleCI
antonioribeiro Oct 24, 2021
e91f644
Merge pull request #254 from antonioribeiro/analysis-nNA9r0
antonioribeiro Oct 24, 2021
e45c3be
Add more PHP versions
antonioribeiro Oct 24, 2021
ff08008
Update badge and add PHP 8.1
antonioribeiro Oct 24, 2021
616efce
Merge pull request #255 from antonioribeiro/feature/github-actions
antonioribeiro Oct 24, 2021
7159463
Add extensions checker
antonioribeiro Oct 25, 2021
3a86dc5
Apply fixes from StyleCI
antonioribeiro Oct 25, 2021
4f749df
Merge pull request #256 from antonioribeiro/analysis-ADn1bl
antonioribeiro Oct 25, 2021
95ef0ae
Merge pull request #257 from antonioribeiro/feature/add-extensions-ch…
antonioribeiro Oct 25, 2021
a153b2d
Add extensions checker
antonioribeiro Oct 25, 2021
49db964
Merge pull request #258 from antonioribeiro/feature/add-extensions-ch…
antonioribeiro Oct 25, 2021
0fe128a
Create a Server Vars () checker
antonioribeiro Nov 7, 2021
24d7c1a
Apply fixes from StyleCI
antonioribeiro Nov 7, 2021
ba4f31e
Merge pull request #259 from antonioribeiro/analysis-5ZwKd2
antonioribeiro Nov 7, 2021
1823b75
Update readme and changelog
antonioribeiro Nov 7, 2021
94f222f
Add more examples
antonioribeiro Nov 8, 2021
0554116
Change some key positions
antonioribeiro Dec 2, 2021
bd19954
Prevent and notify abnormal errors during resource instantiation
antonioribeiro Dec 2, 2021
502ec8e
Apply fixes from StyleCI
antonioribeiro Dec 2, 2021
36dba62
Merge pull request #261 from antonioribeiro/analysis-1bB4GL
antonioribeiro Dec 2, 2021
5ee5cd4
Add MixManifest checker
antonioribeiro Dec 2, 2021
a1b7e14
Apply fixes from StyleCI
antonioribeiro Dec 2, 2021
399f1c6
Merge pull request #262 from antonioribeiro/analysis-PxKwRY
antonioribeiro Dec 2, 2021
eff81f2
Add MixManifest
antonioribeiro Dec 2, 2021
d0b4670
default extension checker config fix
lintaba Dec 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "08:00"
open-pull-requests-limit: 10
45 changes: 45 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run tests

on:
push:
schedule:
- cron: '0 0 * * *'

jobs:
php-tests:
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.1, 8.0, 7.4, 7.3, 7.2]
laravel: [8.*, 7.*]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*

name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: |
git config --global user.email "[email protected]"; git config --global user.name "Antonio Ribeiro"

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --prefer-dist --no-interaction --no-suggest

- name: Execute tests
run: vendor/bin/phpunit

# after_script:
# - |
# if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' && "$TRAVIS_PHP_VERSION" != '7.0' ]]; then
# wget https://scrutinizer-ci.com/ocular.phar
# php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# fi
# --coverage-clover=coverage.clover
2 changes: 1 addition & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ printWidth: 80
tabWidth: 4
useTabs: false
singleQuote: true
trailingCommaPHP: true
trailingCommaPHP: false
braceStyle: psr-2
requirePragma: false
insertPragma: false
Expand Down
31 changes: 30 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
# Changelog

## 1.0.0 - 2020-08-??
## 1.1.2 - 2021-11-07
- Add Server Vars ($_SERVER) checker, to help developers check if configuration is good and CDN requests to the app have the required data.

## 1.1.1 - 2021-11-25
- Add PHP extensions checker

## 1.1.0 - 2021-10-24
- Add Support for PHP 8.1
- Add Checkout.com checker
- Refactor Securit Checker to use a new tool
- Add total time to console panel

## 1.0.1 - 2020-10-15
- Check certificates using openSSL

## 1.0.0 - 2020-10-10
- Add SSL certificates checker
- Allow using URL parameter at the same level of method
- Add support for API checks via the HTTP checker and add example
- Add URL to error message when HTTP is not able to connect
- Allow adding HTTP headers to requests
- Allow HTTP checker method to be changed
- Allow HTTP checker to POST with data
- Allow configuration of Guzzle on the HTTP checker

## 0.11.1 - 2020-10-01
## 0.11.0 - 2020-10-01
- Add Laravel 8 support

## 0.10.4 - 2020-10-01
- Fixed the deprecated use of implode
- Add support for phpunit/php-timer 3
- Added $dateFormat for MS SQL Server support
Expand Down
87 changes: 59 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Health Monitor
## Laravel Server & App Health Monitor and Notifier

[![Latest Stable Version](https://img.shields.io/packagist/v/pragmarx/health.svg?style=flat-square)](https://packagist.org/packages/pragmarx/health) [![License](https://img.shields.io/badge/license-BSD_3_Clause-brightgreen.svg?style=flat-square)](LICENSE) [![Downloads](https://img.shields.io/packagist/dt/pragmarx/health.svg?style=flat-square)](https://packagist.org/packages/pragmarx/health) [![Code Quality](https://img.shields.io/scrutinizer/g/antonioribeiro/health.svg?style=flat-square)](https://scrutinizer-ci.com/g/antonioribeiro/health/?branch=master) [![Build](https://img.shields.io/scrutinizer/build/g/antonioribeiro/health.svg?style=flat-square)](https://scrutinizer-ci.com/g/antonioribeiro/health/?branch=master) [![Build](https://img.shields.io/scrutinizer/coverage/g/antonioribeiro/health.svg?style=flat-square)](https://scrutinizer-ci.com/g/antonioribeiro/health/?branch=master) [![StyleCI](https://styleci.io/repos/74829244/shield)](https://styleci.io/repos/74829244)
<p align="center">
<a href="https://packagist.org/packages/pragmarx/health"><img alt="Latest Stable Version" src="https://img.shields.io/packagist/v/pragmarx/health.svg?style=flat-square"></a>
<a href="LICENSE.md"><img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a>
<a href="https://scrutinizer-ci.com/g/antonioribeiro/health/?branch=master"><img alt="Code Quality" src="https://img.shields.io/scrutinizer/g/antonioribeiro/health.svg?style=flat-square"></a>
</p>
<p align="center">
<a href="https://github.com/antonioribeiro/health/actions"><img alt="Build" src="https://github.com/antonioribeiro/health/actions/workflows/run-tests.yml/badge.svg?style=flat-square"></a>
<a href="https://packagist.org/packages/pragmarx/health"><img alt="Downloads" src="https://img.shields.io/packagist/dt/pragmarx/health.svg?style=flat-square"></a>
<a href="https://scrutinizer-ci.com/g/antonioribeiro/health/?branch=master"><img alt="Coverage" src="https://img.shields.io/scrutinizer/coverage/g/antonioribeiro/health.svg?style=flat-square"></a>
<a href="https://travis-ci.org/antonioribeiro/health"><img alt="PHP" src="https://img.shields.io/badge/PHP-7.1%20--%208.0-brightgreen.svg?style=flat-square"></a>
</p>

This package checks if the application resources are running as they should and creates a service status panel. It has the following main points:

- Highly extensible and configurable: you can create new checkers and notifiers very easily, and you can virtually change everything on it.
- Easy configuration: uses YAML as configuration files
- Resilient resource checker: if the framework is working and at least one notification channel, you should receive notification messages.
- Resilient resource checker: if the framework is working and at least one notification channel, you should receive notification messages.
- Built-in notification system: get notifications via mail, slack, telegram or anything else you need.
- Routes for: panel, json result, string result and resource.
- Configurable panel design.
Expand All @@ -16,14 +26,18 @@ This package checks if the application resources are running as they should and
- View app error messages right in the panel.
- Http response codes 200 and 500, on error, for services like [Envoyer](https://envoyer.io) to keep track of your app health.

## Built-in Resources
## Built-in Resources

Heath has pre-configured resource checkers for the following services:

- Adyen
- AppKey
- APIs
- Broadcasting
- Cache
- ConfigurationCached
- Certificate
- Checkout.com
- Database
- DebugMode
- DirectoryPermissions
Expand All @@ -43,6 +57,7 @@ Heath has pre-configured resource checkers for the following services:
- MailgunConnectable
- MemcachedConnectable
- MigrationsUpToDate
- MixManifest
- MySql
- MySqlConnectable
- NewrelicDeamon
Expand All @@ -60,14 +75,17 @@ Heath has pre-configured resource checkers for the following services:
- RoutesCached
- S3
- SecurityChecker
- SeeTickets
- Sendinblue
- ServerLoad
- ServerVars
- ServerUptime
- Sshd
- Supervisor

But you can add anything else you need, you just have to find the right checker to use or just create a new checker for your resource.

## Easy Configuration
But you can add anything else you need, you just have to find the right checker to use or just create a new checker for your resource.

## Easy Configuration

Creating new resources monitors is easy, just create a new YAML file in app's config/health folder and it's done. Here's some examples:

Expand Down Expand Up @@ -103,7 +121,7 @@ Creating new resources monitors is easy, just create a new YAML file in app's co
pid_file_missing_not_locked: 'Process ID file is not being used by any process: %s.'
column_size: 4

## Screenshots
## Screenshots

### Panel

Expand All @@ -119,7 +137,7 @@ If you have lots of services to check, you may change the default panel design t

![default panel](docs/images/error-single-4-columns.png)

### Error Messages
### Error Messages

Mouse over a failing resource and get instant access to the error message:

Expand All @@ -137,6 +155,15 @@ Here's an example of notification sent via Slack:

## Artisan Console Commands

The health check commands below also return an exit code in a standard format:

| Numeric Value | Service Status | Status Description |
|---------------|----------------|-----------------------------------------------------------------------------------------------------|
| 0 | OK | Service and appears to be functioning properly |
| 1 | Warning | Check ran okay, but was above some "warning" threshold |
| 2 | Critical | The check detected service is not running or is above a "critical" threshold |
| 3 | Unknown | Settings for the service check may be misconfigured and is preventing the check for being performed |

### health:panel

Use the command `health:panel` to view the status of your services in console.
Expand Down Expand Up @@ -199,11 +226,11 @@ Add the Service Provider to your `config/app.php`:
## Hit The Health Panel

http://yourdomain.com/health/panel

## Configure All The Things

Almost everything is easily configurable in this package:

- Panel name
- Title and messages
- Resource checkers
Expand Down Expand Up @@ -231,7 +258,7 @@ Some of the checkers need you to configure the proper binary path for the checke

## Allowing Slack Notifications

To receive notifications via Slack, you'll have to setup [Incoming Webhooks](https://api.slack.com/incoming-webhooks) and add this method to your User model with your webhook:
To receive notifications via Slack, you'll have to setup [Incoming Webhooks](https://api.slack.com/incoming-webhooks) and add this method to your User model with your webhook:

/**
* Route notifications for the Slack channel.
Expand All @@ -245,13 +272,13 @@ To receive notifications via Slack, you'll have to setup [Incoming Webhooks](htt

## Cache

When Health result is cached, you can flush the cache to make it process all resources again by adding `?flush=true` to the url:
When Health result is cached, you can flush the cache to make it process all resources again by adding `?flush=true` to the url:

http://yourdomain.com/health/panel?flush=true

## Events

If you prefer to build you own notifications systems, you can disable it and listen for the following event
If you prefer to build you own notifications systems, you can disable it and listen for the following event

PragmaRX\Health\Events\RaiseHealthIssue::class

Expand All @@ -266,17 +293,17 @@ Broadcasting checker is done via ping and pong system. The broadcast checker wil
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe('pragmarx-health-broadcasting-channel');

redis.on('message', function (channel, message) {
message = JSON.parse(message);

if (message.event == 'PragmaRX\\Health\\Events\\HealthPing') {
request.get(message.data.callbackUrl + '?data=' + JSON.stringify(message.data));
}
});

server.listen(3000);

### Pusher
Expand All @@ -290,19 +317,19 @@ Broadcasting checker is done via ping and pong system. The broadcast checker wil
var pusher = new Pusher('YOUR-PUSHER-KEY', {
encrypted: true
});

var channel = pusher.subscribe('pragmarx-health-broadcasting-channel');

channel.bind('PragmaRX\\Health\\Events\\HealthPing', function(data) {
var request = (new XMLHttpRequest());

request.open("GET", data.callbackUrl + '?data=' + JSON.stringify(data));

request.send();
});
</script>
</head>

<body>
Pusher waiting for events...
</body>
Expand All @@ -313,12 +340,12 @@ Broadcasting checker is done via ping and pong system. The broadcast checker wil
``` php
$generalHealthState = app('pragmarx.health')->checkResources();

// or
// or

$databaseHealthy = app('pragmarx.health')->checkResource('database')->isHealthy();
```

Checking in artisan commands example:
Checking in artisan commands example:

```
Artisan::command('database:health', function () {
Expand All @@ -329,23 +356,27 @@ Artisan::command('database:health', function () {
})->describe('Check database health');
```

## SecurityChecker

As the [SensioLabs Security Checker](https://github.com/sensiolabs/security-checker) package was abandoned, this checker now depends on [local-php-security-checker](https://github.com/fabpot/local-php-security-checker). You need to compile or install it on your server or container in order to use this checker, and update the `config/resources/SecurityChecker.yml` file accordingly.

## Lumen
To use it on Lumen, you'll probably need to do something like this on your `bootstrap/app.php`:

$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config');
$app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage');

$app->withFacades();

$app->singleton('Illuminate\Contracts\Routing\ResponseFactory', function ($app) {
return new \Illuminate\Routing\ResponseFactory(
$app['Illuminate\Contracts\View\Factory'],
$app['Illuminate\Routing\Redirector']
);
});

$app->register(PragmaRX\Health\ServiceProvider::class);

## Testing

``` bash
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
],
"require": {
"php": ">=7.0",
"php": ">=7.1",
"illuminate/support": ">=5.5",
"pragmarx/yaml": ">=0.1",
"phpunit/php-timer": "^1.0|^2.0|^3.0|^4.0|^5.0",
Expand All @@ -41,7 +41,8 @@
"docusign/esign-client": ">=2.0",
"predis/predis": ">=1.0",
"league/flysystem-aws-s3-v3": ">=1.0",
"sensiolabs/security-checker": ">=4.1"
"sensiolabs/security-checker": ">=4.1",
"spatie/ssl-certificate": ">=1.0"
},
"autoload": {
"files": [
Expand Down
Loading