arrilot / laravel-systemcheck by Arrilot

1,240
29
1
Package Data
Maintainer Username: Arrilot
Maintainer Contact: nekrasov.ilya90@gmail.com (Nekrasov Ilya)
Package Create Date: 2016-02-02
Package Last Update: 2019-04-05
Language: PHP
License: MIT
Last Refreshed: 2021-09-26 03:15:24
Package Statistics
Total Downloads: 1,240
Monthly Downloads: 11
Daily Downloads: 0
Total Stars: 29
Total Watchers: 1
Total Forks: 2
Total Open Issues: 1

Latest Stable Version Total Downloads Build Status Scrutinizer Quality Score

Laravel System Check

Check your server and application configuration according to APP_ENV

Installation

  1. Run composer require arrilot/laravel-systemcheck

  2. Register a service provider inside the app.php configuration file.

...
'providers' => [
    ...
    Arrilot\SystemCheck\ServiceProvider::class,
],

Usage

This package provides a php artisan system:check command that performs a bunch of checks and prints results.

screenshot

There are two modes.

  1. production
  2. dev

Each mode has its own collection of checks.

The mode is determined automatically according to APP_ENV. You can override current environment by passing --env to the command. php artisan system:check --env=production

Configuration

By default the package treats the following environments as "production":

['production', 'prod']

You can override them by calling

app()->make(ChecksCollection::class)->setProductionEnvironments(['prod1', 'prod2']);

in your AppServiceProvider