- Is runroom/samples-bundle a Laravel package or a Symfony bundle?
- runroom/samples-bundle is a Symfony bundle, not a Laravel package. It depends on Symfony's bundle and kernel registration model and ships no Laravel service provider or extra.laravel metadata. Laravel has no native bundle loader, so Composer will install it but the framework will not wire it up for you.
- How do I install runroom/samples-bundle with Composer?
- Run composer require runroom/samples-bundle and then register the bundle in your Symfony kernel's bundle configuration, for example config/bundles.php in a Symfony Flex application. There is no Laravel-facing installation step because the package does not target Laravel. Check the package's Composer constraints against your PHP and Symfony versions before installing.
- Can I use runroom/samples-bundle in a Laravel application?
- Not natively. Adopting it in Laravel means bridging Symfony's bundle registration, event dispatcher, and Twig templating contracts, or reimplementing the narrow render hook the bundle provides. The package appears intentionally small, so the integration overhead likely exceeds the value of reproducing the behaviour with Laravel's own view events. There is no Laravel documentation and no dependent packages to validate real-world use.
- What should Laravel developers use instead of runroom/samples-bundle?
- Use Laravel's native view composers and view events, such as composing and creating, or a small render middleware to hook into the request lifecycle. That keeps the hook inside the framework's own lifecycle and avoids maintaining a Symfony compatibility layer. In practice it is one event class, one dispatcher call at the correct render boundary, and listener registration, so usually tens of lines rather than a dependency.
- Which Symfony and PHP versions does runroom/samples-bundle support?
- The repository does not publish a clear compatibility matrix, and the technical review found no evidence of broad testing against current Symfony or PHP versions. Read the composer.json constraints directly before any spike and treat the October 2024 release as a snapshot rather than a compatibility guarantee. If you adopt it, add your own contract tests for the versions you actually run.
- What does runroom/samples-bundle actually do at render time?
- The bundle's core capability is dispatching an event before template rendering, which listeners can use for observability, variable injection, theming, or audit logging. Because that path is global, a listener exception or a listener-ordering problem can break page output across the application. Confirm from the source whether the event payload is mutable and whether listeners can alter template variables or only observe them.
- Is runroom/samples-bundle production ready and actively maintained?
- Treat it as sample or reference code rather than a hardened library: it has around 4 stars, zero dependents, and a samples naming convention. Upstream maintenance signals are thin despite the October 2024 release, with no evidence of an active community or long-term release cadence. If you depend on it, budget to own a fork or an in-house replacement.
- Does runroom/samples-bundle have tests, CI, or a security policy?
- The technical review found no evidence of tests, continuous integration, a security policy, or a release cadence beyond the single 2024 release. If you adopt the bundle, write contract tests yourself covering event ordering, payload mutation, and exception behaviour on the render path. Otherwise dependency update tooling will surface upgrade friction with no upstream remediation path.
- What licence does runroom/samples-bundle use, and can I fork it?
- It is MIT licensed, so legal risk is low and forking or vendoring the source into your own codebase is straightforward. The real risk is technical: Symfony framework coupling, thin maintenance, and a high-blast-radius rendering path. If you fork, wrap it behind an internal interface so your rendering pipeline is not directly coupled to the bundle.
- How should I evaluate build versus adopt for runroom/samples-bundle?
- Start with a time-boxed source review in a non-production branch to confirm the framework coupling and event semantics. Prototype the same behaviour with native Laravel view events, or a Symfony view listener if you are on Symfony, and compare it against the package. Integrate only after the isolated spike passes, and avoid piloting it directly in a customer-facing render path.