<?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');