Strengths & limits

Good architecture tools need no spin.

Explicit module boundaries help clarify dependencies. Their value depends on how well the model fits the project and how the team maintains it.

Strengths & limits
  • Explicit module boundaries
  • Early architecture diagnostics
  • Added modelling effort
  • No automatic refactoring

Strengths & limits

The gains. The trade-offs.

PROS

Automatic integration
and validated module boundaries.

Integrate active areas automatically

When module assignments change, Sillbeam reflects the active areas in its service and route imports and optional Doctrine mappings. Descriptors and assignments control this selection. Native Symfony configuration remains available and must be aligned with activation.

Check direct module dependencies

Sillbeam checks the declared module graph and supported direct class references in active modules. In Core v0.3.0, violations block the container build. In v0.4.0, the cache can still be ready. Before deployment, sillbeam:architecture must exit with code 0.

Optional Projects for multiple interfaces

Shop, administration and API can use the same modules. Private modules remain assigned to their respective Project. Projects add host routing and request context within the same Symfony application.

Trace dependencies in the graph

The SVG graph shows direct dependencies. Focusing on one module helps identify which neighbors an upcoming change may affect.

Inspect findings in the editor

The VS Code extension shows verified locations and the resolution steps supplied by Core. Developers can move from a reported violation to the affected code in their project.

CONS

A module structure needs
clear decisions.

Module boundaries are not automatic

Sillbeam checks declared relationships but does not decide the right boundaries for Billing or User. Granularity remains a trade-off: small modules introduce more relationships, while large ones can obscure different responsibilities. Your application’s business processes determine the appropriate boundaries.

Existing code needs to be assigned

When reorganizing an area, check its dependencies and affected configuration. Moving classes can require namespace, service, routing and Doctrine changes. Verify behavior with existing tests and check which areas are actually imported and activated after each step.

Dependencies remain a design task

A correctly declared relationship can still create tight coupling. Sillbeam evaluates neither interface quality nor the domain purpose of shared modules. Interfaces, shared contracts and dependency direction therefore remain part of your design work.

Another convention needs maintenance

Descriptors, dependencies and Project assignments must stay in sync with code changes. Several organizational approaches coexist during gradual adoption. Allow time for shared conventions and investigating the reported architecture violations, including within your team.

Projects do not provide runtime isolation

Separate hosts and private modules organize interfaces. Projects still share the container, database and event system. Global subscribers and handlers do not automatically run only for a particular host. Independent deployments or isolated services require additional architecture.

Limited static analysis

Direct module-relationship checks are limited to code within modules. code.unknown_class also checks unresolved application types in module and Project code. Couplings in application code outside modules are reported for information only. Dynamic names, PHPDoc and string service IDs remain outside reference analysis. These checks guarantee neither complete decoupling nor security isolation and do not replace freely defined Deptrac rules.

Check the cache and architecture separately

In the development branch, Core v0.4.0 separates cache preparation from the architecture check. A deployment requires both results. Fatal errors may leave the check incomplete. A valid report covers static architecture rules. Application tests and the Symfony build check further prerequisites.

Symfony, Sillbeam and Deptrac solve different problems.

CriterionSymfony without SillbeamSymfony with SillbeamDeptrac
Domain structureFreely chosen directories and Composer namespacesModules with descriptors; optional ProjectsFreely defined layers and collectors
Dependency rulesNo Sillbeam module rules; additional analysis is possibleDirect module declarations, cycles, active and private boundariesFreely defined rulesets between layers
Validation stageSymfony checks its container configuration during the buildCore 0.3: strict container build. Core 0.4 : explicit architecture check alongside cache preparation.Separate analysis run, for example locally or in CI
Application integrationNative service, routing and Doctrine configurationAutomatic integration of active areas through native Symfony/Doctrine mechanismsAnalyzes dependencies; does not perform Sillbeam module imports

Sillbeam and Deptrac overlap in static checks of architecture dependencies. Sillbeam’s rules are narrower and focus on modules in Symfony. Sillbeam also integrates active areas into the application. Deptrac is a standalone analysis tool with freely configurable architecture layers and rulesets. You can use both tools for different checks, provided their configurations are consistent with your domain design.

Sources: Sillbeam architecture, native integration and the official Deptrac documentation.

THE TRADE-OFF

Does Sillbeam fit your project?

Adoption is worth considering when …

  • your application has several recognizable business domains,
  • you want to integrate active modules automatically and check their direct dependencies from the CLI,
  • your team wants shared rules for module boundaries and dependencies,
  • multiple interfaces share domain logic but need their own private features.

The existing structure may be enough when …

  • the application is small and easy for your team to understand,
  • your domain structure and native Symfony configuration already meet your needs,
  • you mainly need freely configurable architecture rules and already use a tool such as Deptrac for them,
  • you mainly need independent deployments or technical isolation between services.

Even a small project can benefit from clearly separated business domains. Conversely, a large application does not automatically need Sillbeam if its structure already works well. Start with a concrete problem in today's work – code that is hard to find, unclear relationships or duplicated domain logic.

THE NEXT STEP

Try it in one business domain.

Try adoption with a billing change. Which direct dependencies does Billing have? Which imports change? What findings does the architecture check report? Include the controllers, services, data model and tests for that area.

Review the effort involved too: which dependencies needed changes? Which rules do you or your team need? Can the declared relationships be explained in domain terms? Do tests and the container build still pass, and do routing and Doctrine mappings work as before? Only then decide whether to extend the approach to other areas.