1. Go to this page and download the library: Download ultra-lite/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/ */
ultra-lite / container example snippets
$container->set(
'service-id',
function (\Psr\Container\ContainerInterface $container) {
return new \stdClass();
}
);
return [
'service-id' =>
function (\Psr\Container\ContainerInterface $container) {
return new \stdClass();
},
];
$container = new \UltraLite\Container\Container();
$delegateContainer = new \UltraLite\CompositeContainer\CompositeContainer(); // or any delegate container
$compositeContainer->addContainer($container); // will vary for other composite containers
$container->setDelegateContainer($myCompositeContainer);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.