PHP code example of symlex / di-microkernel

1. Go to this page and download the library: Download symlex/di-microkernel 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/ */

    

symlex / di-microkernel example snippets


#!/usr/bin/env php


// Composer
nsole');

// Run the 'app' service defined in config/console.yml
$app->run(); 



use DIMicroKernel\Kernel;

class ConsoleApp extends Kernel
{
    public function __construct($appPath, $debug = false)
    {
        parent::__construct('console', $appPath, $debug);
    }

    public function setUp()
    {
        set_time_limit(0);
        ini_set('memory_limit', '-1');
    }
}