PHP code example of fusible / aura-provider
1. Go to this page and download the library: Download fusible/aura-provider 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/ */
fusible / aura-provider example snippets
use Aura\Di\ContainerBuilder;
use Fusible\AuraProvider\ProviderConfig;
// Some providers implementing ServiceProviderInterface
$providers = [
MyServiceProvider::class,
OtherServiceProvider::class,
new SomeServiceProvider($someConfig)
];
$builder = new ContainerBuilder();
$di = $builder->newConfiguredInstance(
[new ProviderConfig($providers)]
);