PHP code example of kaiseki / container-builder

1. Go to this page and download the library: Download kaiseki/container-builder 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/ */

    

kaiseki / container-builder example snippets




declare(strict_types=1);

if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
    throw new RuntimeException('Autoloader is not installed. Please run "composer install".');
}
;

// Call the HookProviderInterface to register hooks
$container->get(\Kaiseki\WordPress\Hook\HookProviderRegistry::class)->registerCallbacks();



return [
    \Kaiseki\WordPress\Config\ConfigProvider::class,
    \Kaiseki\WordPress\Hook\ConfigProvider::class,
];