PHP code example of gidato / laravel-container-extensions

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

    

gidato / laravel-container-extensions example snippets


$app = new Illuminate\Foundation\Application(
    $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);

$app = new Gidato\Container\Application(
    $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);

public function __invoke(\Psr\Container\ContainerInterface $container, string $requestedName, array $parameters = []);