PHP code example of germania-kg / psrcontainerfactory

1. Go to this page and download the library: Download germania-kg/psrcontainerfactory 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/ */

    

germania-kg / psrcontainerfactory example snippets



use Germania\PsrContainerFactory\PsrContainerFactory;
use Psr\Container\ContainerInterface;

$psr11 = (new PsrContainerFactory)([
	'foo' => 'bar'
]);
// yay!
echo ($psr_11 instanceOf ContainerInterface) ? "yay!" : "noe?";
bash
$ composer uire pimple/pimple