SILLBEAM HANDBOOK

Installation

Integrate Sillbeam into your Symfony application and configure exclusions for existing service imports.

Overview

This guide describes Sillbeam Core v0.3.0. The Composer package requires PHP ^8.4, Composer runtime API ^2.2, nikic/php-parser ^5.7 and Symfony components ^7.4 or ^8.0. Doctrine is optional. These supported version ranges do not imply that every patch-version combination has been tested.

The 23 October RC report records checks with PHP 8.4.26/8.5.4 and Symfony 7.4.21/8.1.9. The newer 24 October class-analysis audit covers PHP 8.5.4 with FrameworkBundle 8.1.6 and HttpFoundation 8.1.9; it did not rerun PHP 8.4 or Symfony 7.4. The reports document their stated versions and checks, not a complete support matrix.

The integration examples below exclusively use the new Core identity. Do not combine them with the v0.1.0 package.

Core v0.2.0 was released on October 25, 2026. The historical Billing/Payment example remains evidence for v0.1.0; the consumer snapshot at 74cffb0 is also historical and is not attributed to the release commit.

Install with Composer

Install the published Core version from your Symfony application directory.

BASH
composer require 'websign-dev/sillbeam-core:^0.3.0'

The Composer command follows the confirmed published version. The package and Flex recipe are published independently; the compatible recipe remains at version 0.2.

Public check on October 25, 2026: Packagist serves v0.2.0 for websign-dev/sillbeam-core with source and dist reference cf2f4102ad7c15db30ad5c5af21852bc2aaec99a. This confirms the offered Composer version, not a newly performed installation on every PHP/Symfony combination. A public Recipes Contrib recipe was not confirmed; use manual setup.

Installation order: install the package, ensure bundle and routing registration once, review native service exclusions and, when needed, configure the Core Console adapter. Then run Doctor, resolve outstanding checks and check architecture afterwards. Generators require a working Symfony boot; the adapter does not provide them before the container build.

Register the bundle and routing

Composer installs the package; automatic setup depends on Symfony Flex and a recipe available at the configured endpoint that has actually been installed. Check the existing configuration: if bundle registration or the route import is missing, add it once as shown below. Avoid duplicate registration. The defaults need no config/packages/sillbeam.yaml.

PHP
// config/bundles.php – add to the existing array
Sillbeam\Core\SillbeamCoreBundle::class => ['all' => true],
YAML
# config/routes/sillbeam.yaml
sillbeam:
    resource: .
    type: sillbeam

The standard Symfony kernel is sufficient. SillbeamKernel is an optional convenience class.

Keep the existing App service import and its current exclusions. Add src/Module/, src/Project/ and all custom discovery areas to its exclusions. Otherwise, the native Symfony import can register disabled or unassigned Modules too. Sillbeam does not remove these explicit imports and overrides; the Flex recipe does not change them either.

YAML
# config/services.yaml – extend the existing App\ import
services:
    _defaults:
        autowire: true
        autoconfigure: true

    App\:
        resource: '../src/'
        exclude:
            - '../src/DependencyInjection/'
            - '../src/Entity/'
            - '../src/Kernel.php'
            - '../src/Module/'
            - '../src/Project/'
            # Exclude custom discovery areas as well.

The application needs a Composer PSR-4 mapping such as "App\\": "src/". All PHP files begin with <?php. Review broad native routing and Doctrine imports as well: explicit imports can include inactive areas again. Rebuild production caches after changing code, routing, autoloading or activation.

Before the first Doctor invocation, select the optional Core adapter in the existing bin/console if Symfony boot is broken or should be avoided. Doctor itself writes nothing; without the adapter, Symfony can write its cache beforehand. The Flex recipe configures neither the adapter nor native service exclusions.

Prepare bin/console for diagnostics

Recommended: in the existing bin/console, replace the Symfony Console Application import with the Core adapter. Keep the kernel, Symfony Runtime callback and bootstrap. This is an explicit application edit, not a second executable or an automatic recipe change.

PHP
use Sillbeam\Core\Console\Application;

This makes sillbeam:architecture, sillbeam:report, sillbeam:doctor, sillbeam:inspect:module and sillbeam:graph available before container boot. Other commands still use Symfony. The adapter does not repair service errors; generators require a working boot.

Create your first module

BASH
php bin/console sillbeam:doctor
php bin/console sillbeam:architecture
BASH
php bin/console sillbeam:make:module Hello

This Core command creates only the module directory and an empty final descriptor. Controllers, services, entities and configuration remain application responsibilities. The manual descriptor below is an alternative, not a second step after the generator.

Create src/Module/Hello/HelloModule.php:

PHP
<?php

namespace App\Module\Hello;

#[\Sillbeam\Core\Module\Attribute\SillbeamModule]
final class HelloModule {}

Place regular services in the module directory and controllers with Symfony route attributes under Controller/. #[Exclude], #[When], #[WhenNot], #[AsAlias], autowiring and autoconfiguration use Symfony's native class loader. Native service configuration can override the defaults. Automatic interface aliases are created after all Sillbeam imports, and only when exactly one implementation exists.

Automatic service imports exclude Entity/, Dto/, Tests/, Fixtures/ and Migrations/, including nested directories. These service exclusions are separate from discovery, routing and mapping exclusions.

BASH
php bin/console cache:clear
php bin/console sillbeam:architecture --format=json
php bin/console debug:router

DoctrineBundle enables the mapping integration automatically. sillbeam: { doctrine: false } disables only Sillbeam's automatic mappings. Native mappings remain available.

Upgrade from v0.2.0 to v0.3.0

BASH
composer require 'websign-dev/sillbeam-core:^0.3.0'

The package name, Sillbeam\Core\, bundle, configuration alias and routing type remain unchanged. The Module/Project model, architecture rules, runtime contracts and optional Doctrine integration require no migration. PHP ^8.4 and Symfony ^7.4 or ^8.0 remain required; no runtime dependencies are added.

Review existing scripts: compact module inspection shows DEPENDS ON / USED BY; -v provides technical details. Graphs write SVG by default. Mermaid consumers must specify --format=mermaid. Doctor additionally offers JSON v1 with unchanged status and exit semantics. Module inspection has no JSON mode.

BASH
php bin/console sillbeam:doctor --format=json
php bin/console sillbeam:inspect:module Billing
php bin/console sillbeam:inspect:module Billing -v
php bin/console sillbeam:graph
php bin/console sillbeam:graph --module=Billing --output=billing.svg
php bin/console sillbeam:graph --format=mermaid > architecture.mmd

Preserve bundle/routing integration, existing service exclusions and explicit overrides. Flex recipe 0.2 remains compatible; public Recipes Contrib availability is unconfirmed. Deliberately configure the Console adapter described above. Core does not automatically modify existing application files.

BASH
composer update websign-dev/sillbeam-core --with-dependencies
php bin/console sillbeam:doctor
php bin/console sillbeam:architecture --format=json
APP_ENV=prod APP_DEBUG=0 php bin/console cache:clear
APP_ENV=prod APP_DEBUG=0 php bin/console cache:warmup

Run your application’s container and application tests and review the Composer/lockfile diff. A valid report does not replace a successful Symfony build. Production HTTP still requires a prebuilt cache; --no-warmup alone is insufficient.

Upgrade from v0.1.0 to v0.2.0

Areav0.1.0v0.2.0
Composerwebsign-dev/sillbeamwebsign-dev/sillbeam-core
PHP namespaceSillbeam\Sillbeam\Core\
BundleSillbeam\SillbeamBundleSillbeam\Core\SillbeamCoreBundle
ExtensionSillbeam\DependencyInjection\SillbeamExtensionSillbeam\Core\DependencyInjection\SillbeamCoreExtension
Optional kernelSillbeam\Kernel\SillbeamKernelSillbeam\Core\Kernel\SillbeamKernel
RepositoryWebSign-Dev/SillbeamWebSign-Dev/sillbeam-core

First replace websign-dev/sillbeam in composer.json with websign-dev/sillbeam-core using ^0.2.0 and update the lockfile. Do not install both packages together: no replace declaration or compatibility aliases are provided.

Change every Sillbeam\ PHP prefix in imports, attributes, fully qualified names, class-based service IDs, tests and custom integrations to Sillbeam\Core\. The bundle becomes Sillbeam\Core\SillbeamCoreBundle, the extension Sillbeam\Core\DependencyInjection\SillbeamCoreExtension. The optional kernel is Sillbeam\Core\Kernel\SillbeamKernel. Application namespaces stay unchanged.

Replace the old bundle entry in config/bundles.php. Review Flex diffs; the locally prepared recipe is at websign-dev/sillbeam-core/0.2, with public availability requiring separate confirmation. Preserve custom service exclusions and routing configuration.

The sillbeam configuration alias, sillbeam:* CLI names, routing type sillbeam and named service IDs such as sillbeam.module_registry stay unchanged. The rename requires no database migration.

BASH
composer update
composer dump-autoload
APP_ENV=dev php bin/console cache:clear
APP_ENV=prod APP_DEBUG=0 php bin/console cache:clear
APP_ENV=prod APP_DEBUG=0 php bin/console cache:warmup
APP_ENV=prod APP_DEBUG=0 php bin/console sillbeam:architecture --format=json

Review Composer changes deliberately and run application tests. Rebuild container and route caches for each environment. Prepare production as a fresh release with its own cache and stop on every nonzero exit. --no-warmup alone does not prepare an HTTP-ready release.

Consumers parsing exception text must migrate to structured findings: ArchitectureValidationException remains a LogicException but includes the aggregate result in result. Enable the optional Console adapter to generate reports even when the container cannot boot. JSON consumers must account for schema_version, complete, exit status and unknown activation values.