1. Go to this page and download the library: Download innmind/debug 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/ */
innmind / debug example snippets
use Innmind\Framework\{
Application,
Main\Http, // this example also works with Main\Cli
Middleware\Optional,
};
use Innmind\Profiler\Web\Kernel as Profiler;
use Innmind\Debug\Kernel as Debug;
use Innmind\Url\Path;
new class extends Http {
protected function configure(Application $app): Application
{
return $app
->map(Optional::of(
Debug::class,
static fn() => Debug::inApp()->operatingSystem(),
))
->map(new YourAppKernel)
->map(Optional::of(
Profiler::class,
static fn() => Profiler::inApp(Path::of('var/profiler/')),
))
->map(Optional::of(
Debug::class,
static fn() => Debug::inApp()->app(),
));
}
};
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.