Are direct references between domain areas hard to follow, or is configuring active areas becoming cumbersome? Sillbeam adds declared module boundaries, build checks and automatic integration. In return, you need to introduce it into existing code and maintain descriptors over time.
What matters is whether the structure fits your application and your team.
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.
Validate module dependencies during the build
Sillbeam checks the declared module graph and supported direct class references in active modules. A violation prevents the container build. Checks follow the defined module model rather than freely configurable rules for architecture layers.
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.
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 resulting build errors, 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.
Strict builds and bounded analysis
Core v0.2.0 collects independently detectable violations. Fatal errors block further analysis steps. Invalid architecture still prevents the build. The optional Console adapter enables reports before the container boots but fixes neither configuration nor service errors. A valid architecture report replaces neither application tests nor a successful container build.
Symfony, Sillbeam and Deptrac
Criterion
Symfony without Sillbeam
Symfony with Sillbeam
Deptrac
Domain structure
Freely chosen directories and Composer namespaces
Modules with descriptors; optional Projects
Freely defined layers and collectors
Dependency rules
No Sillbeam module rules; additional analysis is possible
Direct module declarations, cycles, active and private boundaries
Freely defined rulesets between layers
Validation stage
Symfony checks its container configuration during the build
Collected findings, strict container build; reports before container boot with an optional adapter
Separate analysis run, for example locally or in CI
Application integration
Native service, routing and Doctrine configuration
Automatic integration of active areas through native Symfony/Doctrine mechanisms
Analyzes 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.
your application has several recognizable business domains,
you want to integrate active modules automatically and check their direct dependencies during the build,
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.
Assess adoption through a specific change, such as invoicing: what direct dependencies does Billing have, which imports need adjustment, and which diagnostics does the build produce? Include the area’s controllers, services, data model and tests.
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.