PHP code example of jiawei666 / my-di

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

    

jiawei666 / my-di example snippets



$container = new MyDI\Container(YourClass::class);  // Init container
$Object    = $container->get(); // Get object
// ...

// See unit test Amway for more usage