composer require scheb/tombstone-analyzer
If you don't need the analyzer on a production system (e.g. you have a separate CI system for that purpose), you may want to install it as a dev dependency:
composer require scheb/tombstone-analyzer --dev
Create a YAML configuration file that contains at least the minimum configuration:
# tombstone.yml
source_code:
# Where your source files are located. This should point to the same folder as the rootDirectory
# that you have configured for the tombstone-logger component
root_directory: ./src
logs:
# Where your tombstone log files are located
directory: ./logs/tombstones
Relative paths in the configuration file are resolved relative to the file's location.
Run tombstone-analyzer
from your Composer bin
directory:
# Looks for a configuration file named tombstone.yml
vendor/bin/tombstone-analyzer
# Alternatively, explicitly set the path to the configuration file
vendor/bin/tombstone-analyzer -c path/to/your-config-file.yml
The analyzer doesn't generate a report yet. See available Report Formats and how to configure them.
You may also want to have a look at the full Configuration Reference to refine your configuration.