PHP code example of earc / data-default-setup

1. Go to this page and download the library: Download earc/data-default-setup 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/ */

    

earc / data-default-setup example snippets


use eArc\DataDefaultSetup\Initializer;

Initializer::init();

use eArc\DataDefaultSetup\ParameterInterface;

$redisConnection = ['127.0.0.1', 6379];

di_set_param(ParameterInterface::REDIS_CONNECTION, $redisConnection);
di_set_param(ParameterInterface::KEY_GENERATOR_REDIS_CONNECTION, $redisConnection);