PHP code example of reliv / server

1. Go to this page and download the library: Download reliv/server library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

reliv / server example snippets



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


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