PHP code example of earc / core

1. Go to this page and download the library: Download earc/core 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 / core example snippets


 #.earc-config.php

return ['earc' => [
    'is_production_environment' => true
    //.. place here the parameters for the components
]];

use eArc\DI\DI;
use eArc\Core\Configuration;

DI::init();
Configuration::build();

use eArc\DI\DI;
use eArc\Core\Configuration;