Download the PHP package nowo-tech/fragment-kit-bundle without Composer
On this page you can find all versions of the php package nowo-tech/fragment-kit-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nowo-tech/fragment-kit-bundle
More information about nowo-tech/fragment-kit-bundle
Files in nowo-tech/fragment-kit-bundle
Package fragment-kit-bundle
Short Description Symfony bundle: resilient Twig fragment rendering with optional fallback template and Sentry reporting.
License MIT
Homepage https://github.com/nowo-tech/FragmentKitBundle
Informations about the package fragment-kit-bundle
FragmentKitBundle
⭐ Found this useful? Give it a star on GitHub! It helps us maintain and improve the project.
Symfony bundle that makes Twig fragment sub-requests resilient when using {ignore_errors: true}.
This bundle is FrankenPHP worker mode friendly (kernel reused / FRANKENPHP_RESET_KERNEL unset or 0). See docs/FRANKENPHP-WORKER-AUDIT.md.
Features
- ✅ HTTP error tolerance —
{ignore_errors: true}also covers 403/404 (not only exceptions) - ✅ Twig fallback — configurable template (or empty string)
- ✅ Optional Sentry — report suppressed failures without breaking the parent page
- ✅ Flex recipe — ships
nowo_fragment_kitconfig - ✅ FrankenPHP demo — Symfony 8 single-container demo
FrankenPHP: Demos use a single PHP service (FrankenPHP, no nginx). Runtime mode is controlled by FRANKENPHP_MODE in .env (default worker). Set classic for per-request PHP / easier hot-reload (entrypoint swaps in Caddyfile.dev). Recreate the container after changing the mode — no image rebuild. See docs/DEMO-FRANKENPHP.md.
Version information
| Version | PHP | Symfony | Status |
|---|---|---|---|
| 1.2.x | >= 8.2 | 7.4 – 8.1+ | Stable |
| 1.1.x | >= 8.2 | 7.4 – 8.1+ | Stable |
| 1.0.x | >= 8.2 | 7.4 – 8.1+ | Security / maintenance |
Installation
Register the bundle (Flex does this automatically):
Requirements
- PHP
>= 8.2,< 8.6 - Symfony
^7.4 || ^8.0(CI covers 7.4, 8.0, 8.1) - Twig Bundle
Problem
{{ render(controller(...), {ignore_errors: true}) }} only suppresses exceptions thrown during sub-requests. When the sub-request returns an HTTP error status (403, 404, …), FragmentHandler::deliver() throws a RuntimeException and the parent page still fails with a 500; and exceptions thrown by the fragment controller are swallowed into an empty string with no fallback and no report. FragmentKit handles both (see Usage).
Demos
Development
Documentation
- Installation
- Configuration
- PSR evaluation (REQ-CS-007)
- Usage
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- GitHub Actions CI requirements
- Demo with FrankenPHP (includes worker mode)
- FrankenPHP worker audit (
FRANKENPHP_RESET_KERNELunset/false) - Server cookbook (Nginx, php-fpm, FrankenPHP)
Tests and coverage
- Tests: PHPUnit (unit + integration)
- PHP: 100% lines (
make test-coverage)
License
MIT — see LICENSE.
All versions of fragment-kit-bundle with dependencies
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/framework-bundle Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/twig-bundle Version ^7.4 || ^8.0
symfony/yaml Version ^7.4 || ^8.0
twig/extra-bundle Version ^3.12
twig/string-extra Version ^3.12