SILLBEAM HANDBOOK · v0.4.0

Architecture graph

Render native SVG with Graph 2.0 or export the same evidence as Mermaid source.

Export SVG and Mermaid

BASH
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.mmd

The 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 codeMeaning
0Export succeeded, architecture valid.
1Export succeeded, architecture violations found.
2Diagnostic export succeeded, analysis incomplete or unavailable.
3Invocation or selector error.
4SVG output filesystem error.

The graph reference covers filters, language options and file handling.