You can install the package via composer:
composer require tleckie/injector-detect
<?php
include_once "vendor/autoload.php";
use Psr\Http\Message\ServerRequestInterface;
use Tleckie\InjectorDetect\Detector;
$detector = new Detector();
/** @var ServerRequestInterface $request*/
$detector->check($request);