- Is gradientz/twig-express-bundle compatible with Laravel?
- No. It is a Symfony bundle that depends on Symfony's HttpKernel bundle registration, services.yml dependency injection, and the Symfony Routing component. Laravel has no bundle or Kernel::registerBundles() mechanism, so composer require will install code that never boots. There is no viable direct integration path for a Laravel application.
- What does gradientz/twig-express-bundle actually do?
- It registers browse and render routes over static Twig templates shipped inside Symfony bundles, letting front-end developers preview prototypes without wiring controllers. The README scopes it explicitly to private, non-public-facing prototypes. Treat it as a developer-preview tool, not a feature dependency.
- Can I pair it with rcrowe/twigbridge to use it in Laravel?
- Even with a Twig bridge, the bundle's routes, controller, and template locator all assume Symfony bundle directory conventions such as @BundleName/Resources/views. Those directories do not exist in a Laravel tree. Bridging the templating engine does not bridge the bundle structure, so this path is not worth scoping.
- Which Symfony, Twig, and PHP versions does it support?
- It was built for Symfony 2.8 through 3.x, Twig 1.x and 2.x, and PHP 7.x. The last release was 2017-06-12. It is incompatible with PHP 8.x and Symfony 5/6+ without forking, including the Twig_Environment to Environment namespace move.
- How do you install and configure it in a Symfony application?
- You add it via Composer, register the bundle in AppKernel, and configure it through your config YAML. Before cutting a branch, verify Composer constraint resolution against the target composer.json and confirm bundle auto-registration behavior on that Symfony version. Pin the preview route to local or dev only.
- Is gradientz/twig-express-bundle safe to run in production?
- By design it renders arbitrary templates from disk behind a route, so misconfiguration in a non-local environment is a disclosure or injection vector. The README scopes it to private prototypes, not public-facing pages. Gate the route at the infrastructure layer rather than relying on config alone.
- Is the package maintained, and are there recent releases or dependents?
- The last release was June 2017, making it roughly eight years dormant. It shows zero stars and zero dependents, so there is no production evidence and no community answers to lean on. There is no observable CI, test suite, or maintainer responsiveness.
- What are the alternatives for previewing Twig or Blade prototypes in Laravel?
- Use Storybook with a Twig loader, Pattern Lab for Twig, or a small first-party package that exposes a dev-only route rendering Twig via rcrowe/twigbridge under APP_ENV=local. Each option matches the stack and keeps cost bounded. The resulting artifact is yours to maintain.
- Should I fork gradientz/twig-express-bundle for a legacy Symfony app?
- Only if a legacy Symfony 2.8 to 3.x application genuinely needs it. The MIT license makes forking low-friction legally, but it assigns permanent maintenance to you. Bump the Symfony, Twig, and PHP constraints, add a test and a CI job, and environment-guard the route.
- How do I validate or rule out the bundle quickly before committing?
- Run a timeboxed two-day spike in a disposable Symfony VM, or confirm the Laravel incompatibility empirically with a throwaway install. Check Composer constraint resolution, bundle auto-registration, the Twig API surface used, and a PHP 8 fatal-error sweep on the controller and locator. Output an adopt, port, or drop decision memo.