t3g/symfony-template-bundle
A Symfony bundle for managing and rendering reusable templates in your applications. It provides a lightweight template layer and services to help keep shared layouts, partials, and dynamic content consistent across your Symfony project.
This is a Symfony bundle published by TYPO3 GmbH, not a Laravel package — there is no service provider, no facade, no config/*.php publish tag, and Composer auto-discovery will not register anything for you. Treat it as a Symfony/TYPO3 integration dependency that you pull into a Symfony-kernel-based application (typically a TYPO3 v12/v13 install or a standalone Symfony app that shares TYPO3's templating conventions). If your day-to-day is pure Laravel, the realistic first use case is a TYPO3 site or a Symfony microservice in the same estate, not composer require inside a Laravel app.
Minimal steps:
composer require t3g/symfony-template-bundle inside the Symfony/TYPO3 project that will consume it.composer.json (for Symfony/TYPO3 version constraints), then the bundle class (*Bundle.php), then DependencyInjection/*Extension.php and Resources/config/ to see what services and parameters are actually registered.config/bundles.php (T3G\...\SymfonyTemplateBundle::class => ['all' => true]), or, in a TYPO3 context, enable the package in config/system/settings.php / package states.config/packages/*.yaml for the bundle's config root (usually the lower-snake-case vendor/package name) and set template paths there.Symfony\Component\HttpFoundation\Response built from a rendered template; confirm with bin/console debug:container | grep -i template that the service exists before writing code against it.bin/console debug:container --show-private and search for the bundle's namespace.Response. This mirrors Laravel's view() flow but with explicit Response construction.config/packages/dev/...yaml vs prod) so you can point dev at a working directory and prod at a built/cached path.Configuration/Services.yaml and let TYPO3's Symfony DI container autowire it. Keep TYPO3's Fluid templates and this bundle's templates in separate directories to avoid resolution ambiguity.Http:: from Laravel. Trying to shoehorn Symfony bundle bootstrapping into Laravel's container is more work than an HTTP boundary.Symfony\Bundle\FrameworkBundle\Test\KernelTestCase (or WebTestCase) and boot a minimal test kernel with the bundle registered; assert on rendered output rather than on internal service calls.decorates:) over forking the bundle; with this adoption level, upstream fixes are unlikely to arrive quickly, so keep your customizations in your own package.composer require alone does nothing in Laravel. There is no extra.laravel block to rely on; assume manual wiring or an HTTP boundary.composer.json constraints before upgrading either side.config/bundles.php; TYPO3 uses package states. Registering in the wrong place yields a "service not found" rather than a helpful error.bin/console cache:clear (Symfony) or flush TYPO3 caches. Stale compiled containers are the most common cause of "my config change did nothing."bin/console debug:container <service>, debug:config <alias>, lint:twig, and lint:yaml will tell you more than the README. Use --env=dev and check var/log/dev.log for container compilation warnings.@Bundle/...) to make collisions obvious instead of silently rendering the wrong file.debug:config against the guessed alias to get the real one from the error message.repositories VCS entry or a local path repository; keep the patch isolated so it's easy to drop when upstream catches up.How can I help you explore Laravel packages today?