1. Go to this page and download the library: Download anvildev/craft-trails 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/ */
anvildev / craft-trails example snippets
// config/trails.php
return [
'anchorType' => 's3',
's3Bucket' => 'trails-anchors-1714291200', // your $BUCKET from step 1
's3Region' => 'eu-central-1',
's3AccessKeyId' => '$AWS_ACCESS_KEY_ID', // env-var resolution works
's3SecretAccessKey' => '$AWS_SECRET_ACCESS_KEY',
];
// config/trails.php
return [
'anchorType' => 'rfc3161',
'tsaUrl' => 'https://freetsa.org/tsr',
// Either: path to a PEM CA bundle the PHP process can read.
'tsaTrustedCaBundle' => '/etc/trails/tsa-ca-bundle.pem',
// OR: inline PEM (used only if tsaTrustedCaBundle is empty).
// 'tsaCaBundlePem' => "-----BEGIN CERTIFICATE-----\nMIID…\n-----END CERTIFICATE-----\n",
];