1. Go to this page and download the library: Download mtrdesign/s3-logs-parser 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/ */
mtrdesign / s3-logs-parser example snippets
use S3LogsParser\S3LogsParser;
$S3LogsParser = new S3LogsParser([
'version' => 'latest',
'region' => $awsBucketRegion,
'access_key' => $awsAccessKey,
'secret_key' => $awsSecretKey,
]);