arrilot/laravel-systemcheck

This package is abandoned and no longer maintained. No replacement package was suggested.

1.1.0 2019-04-05 17:52 UTC

This package is auto-updated.

Last update: 2023-01-17 06:31:07 UTC


README

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