from

$loader = require_once __DIR__ . "/../vendor/autoload.php";

to

require_once __DIR__ . "/../vendor/autoload.php";