reliv/server

Server environment detection based on config array-file

0.1.5 2018-04-30 22:46 UTC

This package is auto-updated.

Last update: 2024-04-11 13:20:12 UTC


README

Server Environment detection based on config array-file

Usage

In your bootstrap file (usually index.php)

    // First Auto-loader or include file
    // Include the environment specific config file
    \Reliv\Server\Environment::setLocalEnvironment(__DIR__ . '/../config/env.php');
    

Config file format:

    <?php
    return [
        'RelivServerEnvironment' => [
            'name' => 'local',
            'isProduction' => false,
            'initSet' => [
                // EXAMPLE:
                'xdebug.max_nesting_level' => 200,
            ],
        ],
    ];
    
Project homepage:

https://github.com/reliv

Project author:

James Jervis

Project author email:

jjervis@relivinc.com

Project author homepage:

https://github.com/reliv/server