1. Go to this page and download the library: Download welldigit/etruscan 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/ */
welldigit / etruscan example snippets
namespace Core\Domain\Monitor\Actions;
#[\EtruscanNode('monitor-create')]
#[\EtruscanLayer('action')]
#[\EtruscanContext('monitor')]
final readonly class MonitorCreate { /* … */ }
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
final readonly class EtruscanCriticality extends \WellDigit\Etruscan\Attributes\EtruscanAxis {}
// config/etruscan.php
'scanned_folders' => ['app', 'src'], // ← set to match YOUR layout (unset: app/ and src/ where they exist)
'vault_path' => '.etruscan', // where the notes are written (hidden by default)