Modules as architecture boundaries
A #[SillbeamModule] descriptor defines identity, scope and direct dependencies. The module boundary covers its directory and subdirectories.
SILLBEAM CORE
Core is the foundation for explicit module boundaries in Symfony. The 0.4 line extends the same analysis with Core Data, localized diagnostics and Graph 2.0.
Inspect local module state
php bin/console sillbeam:inspect:module BillingCORE IN PRACTICE
Core adds enforceable module boundaries to Symfony. Symfony still provides the service, routing and runtime mechanisms.
A #[SillbeamModule] descriptor defines identity, scope and direct dependencies. The module boundary covers its directory and subdirectories.
Core detects cycles, undeclared direct class references and invalid access to private modules. Findings include the available source context.
Module inspection explains scope, configuration, activation and direct dependencies. Doctor inspects the installation and common setup issues.
THE SHARED FOUNDATION
The CLI, reports, graphs and IDE integrations all get their findings from Core. A cycle such as Billing → Payment → Catalog → Billing can be investigated in the terminal and as a dependency graph.
IDE integrationsStrengths & limits
Core checks supported static references within the configured discovery scope. Dynamic references, runtime behavior and tenant isolation are outside the analysis. Projects share a single Symfony application.
Strengths & limits100 synthetic modules, PHP 8.5.4, FrameworkBundle 8.1.6, CLI OPcache off. The comparison covers native Symfony and Core before (5070bfa) and after optimization (d1070c1). HTTP measures kernel time within the PHP process.
| Measurement (ms) | Symfony | 5070bfa | d1070c1 |
|---|---|---|---|
| Dev · Warm HTTP p50 | 7.45 | 11.86 | 7.08 |
| Prod · Cold build | 1456.81 | 3165.67 | 2531.24 |
| Prod · Architecture check, primed index | — | 1265.44 | 233.66 |
| Prod · Warm HTTP p95 | 4.46 | 4.52 | 5.15 |
Production builds still cost more than native Symfony. A slow batch shifted the initial warm HTTP p95. In the independent control with nine pairs of 150 follow-up requests, both Core revisions reached 4.50 ms at p95 (p50: 2.91 → 2.90 ms).
Full matrix (CSV) · Control measurements (CSV)
A synthetic comparison of Core v0.2.0 and native Symfony: 100 modules, identical services, routes and responses. Measured on 23 October 2026.
| Metric | Native Symfony (ms) | Core v0.2.0 (ms) |
|---|---|---|
| Cold build · p50 | 1,589.24 | 4,409.46 |
| Warm HTTP · p50 | 3.397 | 3.404 |
| Warm HTTP · p95 | 5.052 | 5.031 |
Very similar response times in the measured warm HTTP test. The additional architecture checks increase container build time. These results apply to the documented synthetic test setup.
PHP 8.5.4, FrameworkBundle 8.1.6, HttpFoundation 8.1.9; one workstation, CLI OPcache and JIT disabled. Three build repeats, 150 warm HTTP samples per variant. HTTP here means in-process Kernel::handle(), without network, FPM or concurrent load. No Projects, Doctrine or database.
Synthetic linear dependencies are not capacity planning. Warm HTTP processes loaded neither the analyzer nor the PHP parser. Rerun on the target environment with realistic load before making your own claims.
Source: measurements from 23 October 2026. Raw data, source revision and reproduction instructions are documented in the Core repository. Measurements and reproduction
CORE v0.4.0
The handbook covers v0.4.0. The archived PHPDoc reference covers v0.3.0.
CORE DATA API V1
Live returns the module catalog, references and diagnostics in one language. Analysis adds structured graph data, source inventory, Doctor and both languages. A fingerprint depends on sufficiently stable and complete inputs.
Core Data APICLI
Human-readable findings use the explicit --locale option, a personal preference or the project default. Machine formats follow their own versioned contracts. Analysis includes both languages.
CLI referenceGRAPH 2.0
Core produces native SVG graphs with deterministic dependency layers, scope bands and orthogonal edges. Module focus and Mermaid export remain available.
Graph 2.0Core v0.4 separates cache preparation from the explicit architecture check. Both must pass before a production release. Check export status when analysis is incomplete. Technical changes in v0.4.0 ↗
Sillbeam Core · v0.3.0
The guide takes you from the Composer package and service imports for your module under src/Module/ to your first architecture check.
Open the installation guidecomposer require 'websign-dev/sillbeam-core:^0.3.0'PHP ^8.4 Symfony ^7.4 / ^8.0