1. Go to this page and download the library: Download replaystack/sdk 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 ReplayStack\Sdk\Integrations\Slim\ReplayStackMiddleware;
use ReplayStack\Sdk\Integrations\Psr15\MiddlewareOptions;
$app->add(new ReplayStackMiddleware($client, new MiddlewareOptions(
ignoredPaths: ['/health', '/internal/*'],
)));
$client->flush(); // synchronously drain the offline queue
$client->flush(2.0); // with a deadline
$client->close(); // stop accepting + drain
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.