Architecture graph
Render native SVG with Graph 2.0 or export the same evidence as Mermaid source.
Export SVG and Mermaid
php bin/console sillbeam:graph
php bin/console sillbeam:graph --module=Billing --project=shop --output=billing.svg
php bin/console sillbeam:graph --format=mermaid > architecture.mmdThe default export writes architecture.svg to the working directory. PHP renders SVG directly. Use --output to set the destination. Existing files require --force. Directories and symbolic links are rejected as destinations. Mermaid writes raw source to STDOUT for shell redirection.
Read Graph 2.0
The SVG arranges direct dependencies in deterministic layers. Scope bands group shared and private modules. Orthogonal edges route around cards. Dense graphs can still have overlaps and crossings. Use --module to focus on direct incoming and outgoing relationships.
Solid edges represent declarations and dashed edges indicate observed access without a direct declaration. Incomplete reference analysis can leave edges absent. Graph and inspection use the same evidence from the ArchitectureReport.
Export and analysis verdict
| Exit code | Meaning |
|---|---|
| 0 | Export succeeded, architecture valid. |
| 1 | Export succeeded, architecture violations found. |
| 2 | Diagnostic export succeeded, analysis incomplete or unavailable. |
| 3 | Invocation or selector error. |
| 4 | SVG output filesystem error. |
The graph reference covers filters, language options and file handling.