reliv/server

基于配置数组文件的服务器环境检测

0.1.5 2018-04-30 22:46 UTC

This package is auto-updated.

Last update: 2024-09-11 14:16:06 UTC


README

基于配置数组文件的服务器环境检测

使用方法

在您的引导文件中(通常是index.php)

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

配置文件格式

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

https://github.com/reliv

项目作者

James Jervis

项目作者邮箱

jjervis@relivinc.com

项目作者主页

https://github.com/reliv/server