1. Go to this page and download the library: Download getfaultline/faultline-php 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/ */
use Faultline\Integrations\Psr15\FaultlineMiddleware;
\Faultline\init(['apiKey' => getenv('FAULTLINE_API_KEY')]);
$app = Slim\Factory\AppFactory::create();
$app->addErrorMiddleware(true, true, true);
$app->add(new FaultlineMiddleware()); // added last, so it runs first and sees the exception