PHP code example of unknownrori / container
1. Go to this page and download the library: Download unknownrori/container 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/ */
unknownrori / container example snippets
use UnknownRori\Container\Container;
$container = new Container();
$container->set('TestContainer', 'instance or something');
var_dump($container->get('TestContainer'));