Build HTML code with HtmlBuilder

Code
<?php

use Illuminate\Routing\UrlGenerator;
use 
Illuminate\Routing\RouteCollection;
use 
Illuminate\Http\Request;

use 
Illuminate\View\Factory;

use 
Illuminate\View\FileViewFinder;
use 
Illuminate\Filesystem\Filesystem;
use 
Illuminate\Events\Dispatcher;
use 
Illuminate\View\Engines\EngineResolver;

use 
Collective\Html\HtmlBuilder;

$urlGenerator = new UrlGenerator(
    new 
RouteCollection(),
    
Request::createFromGlobals()
);

$viewFinder = new FileViewFinder(new Filesystem(), []);
$dispatcher = new Dispatcher();
$engineResolver = new EngineResolver();

$factory = new Factory($engineResolver$viewFinder$dispatcher);

$html = new HtmlBuilder($urlGenerator$factory);

echo 
$html->image('img/php_logo.png') .
    
'<br>' $html->link('http://php.net''PHP Website');
Result
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8