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
use WellDigit\Etruscan\Attributes\EtruscanNode;
use WellDigit\Etruscan\Attributes\Vocabulary\EtruscanContext;
use WellDigit\Etruscan\Attributes\Vocabulary\EtruscanLayer;
#[EtruscanNode('monitor-create')]
#[EtruscanLayer('action')]
#[EtruscanContext('monitor')]
final readonly class MonitorCreate { /* … */ }
use Attribute;
use WellDigit\Etruscan\Attributes\EtruscanAxis;
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final readonly class EtruscanCriticality extends EtruscanAxis {}
// config/etruscan.php
'scanned_folders' => ['app', 'src'], // ← edit to match YOUR layout
'vault_path' => '.etruscan', // where the notes are written (hidden by default)