PHP code example of laravel-chronicle / anchor-s3
1. Go to this page and download the library: Download laravel-chronicle/anchor-s3 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/ */
laravel-chronicle / anchor-s3 example snippets
'anchoring' => [
'enabled' => true,
'providers' => [
's3-object-lock' => [
'provider' => \Chronicle\AnchorS3\S3ObjectLockAnchor::class,
'bucket' => env('CHRONICLE_S3_ANCHOR_BUCKET'),
'prefix' => 'chronicle/anchors', // optional (default 'chronicle/anchors')
'mode' => 'GOVERNANCE', // 'GOVERNANCE' or 'COMPLIANCE'; unset defaults to GOVERNANCE
'retain_days' => 3650, // optional; defaults to 3650
],
],
],