PHPackages                             symkit/error-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. symkit/error-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

symkit/error-bundle
===================

Premium error page templates for Symfony applications

v0.0.4(3mo ago)10MITPHPPHP &gt;=8.2CI passing

Since Feb 21Pushed 3mo agoCompare

[ Source](https://github.com/SymKit/error-bundle)[ Packagist](https://packagist.org/packages/symkit/error-bundle)[ RSS](/packages/symkit-error-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (31)Versions (6)Used By (0)

Symkit Error Bundle
===================

[](#symkit-error-bundle)

[![CI](https://github.com/symkit/error-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/symkit/error-bundle/actions)[![Latest Version](https://camo.githubusercontent.com/a6259b73d5851acf16d18e27da41da47f151ff4db90ed3ffacd4aab75cead24d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d6b69742f6572726f722d62756e646c652e737667)](https://packagist.org/packages/symkit/error-bundle)[![PHPStan Level 9](https://camo.githubusercontent.com/1bc07920f0d36e55c17e1d38b1caa132cc605f51a82b388c962870b9a747b898/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d627269676874677265656e2e737667)](https://phpstan.org/)

Premium error page templates for Symfony applications. Overrides default Symfony error pages with a modern terminal-themed design.

Installation
------------

[](#installation)

```
composer require symkit/error-bundle twig/intl-extra
```

The error templates use Twig Intl filters (`format_datetime`, etc.). With Twig enabled, you must register the Intl extension, for example in `config/packages/twig.yaml`:

```
twig:
    extra:
        intl: true
```

(or register `Twig\Extra\Intl\IntlExtension` as a service tagged `twig.extension`). If the bundle is enabled and Twig is present but the extension is missing, the container build fails with a message describing these steps.

If not using Symfony Flex, register the bundle manually in `config/bundles.php`:

```
return [
    // ...
    Symkit\ErrorBundle\SymkitErrorBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

```
# config/packages/symkit_error.yaml
symkit_error:
    enabled: true              # default: true — set to false to use Symfony default error pages
    website_name: 'Your Brand' # default: 'Symkit' — trimmed, max 200 characters; empty becomes default
    home_path: '/'             # default: '/' — see "Home path (security)" below
```

- **enabled** : when `false`, the bundle does not override error pages (Symfony defaults are used) and does not register the Twig globals.
- **website\_name** : name displayed on error pages. Exposed in Twig as the global `symkit_error_website_name`. Values longer than 200 characters or blank (after trim) fall back to `Symkit`.
- **home\_path** : target for “Back to homepage” and brand/footer links. Exposed as `symkit_error_home_path`. See below.

### Home path (security)

[](#home-path-security)

`home_path` must be a **safe app-relative path** so links cannot be turned into `javascript:`, `data:`, protocol-relative (`//…`), or absolute URLs. Allowed shape:

- Starts with exactly one `/` (not `//`)
- Path segments: letters (including Unicode), digits, `_`, `-`, `.`, `~`
- Optional `?query` and `#fragment` (query/hash are not validated as strictly as the path; keep them trusted)
- Maximum length 2048 characters

Invalid or unsafe values are **silently replaced with** `/`. For an external homepage URL, override the templates and build the link yourself (e.g. with a parameter you control).

Included Templates
------------------

[](#included-templates)

TemplateHTTP CodeDescription`error404.html.twig`404Page not found`error403.html.twig`403Forbidden access`error401.html.twig`401Unauthorized`error429.html.twig`429Too many requests`error503.html.twig`503Service unavailable / maintenance`error.html.twig`5xxGeneric server error`base_error.html.twig`—Base layout for all error pagesAll these pages set `` where applicable.

Internationalization
--------------------

[](#internationalization)

The bundle ships with French and English translations. The locale is determined by the application's current locale (`app.request.locale`).

To override translations, create your own XLIFF file using the `SymkitErrorBundle` domain.

Customization
-------------

[](#customization)

Override any template in your application by creating the corresponding file:

```
templates/bundles/TwigBundle/Exception/error404.html.twig

```

The base layout exposes these Twig blocks: `error_title`, `meta_robots`, `cursor_color`, `glow_effect`, `terminal_card`, `error_content`, `footer_link`. It uses the Twig globals `symkit_error_website_name` and `symkit_error_home_path`. The main landmark is ``. Decorative SVGs use `aria-hidden="true"` and `focusable="false"`.

Contributing
------------

[](#contributing)

```
make install   # Install dependencies
make ci        # Full pipeline: audit, quality (CS, PHPStan, Deptrac, PHPUnit, Infection)
```

Never commit code that fails `make ci`.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance80

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

4

Last Release

107d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/077eba6702dc23a795ee2262dff92505e3c8ead08f7cb205be80d8aae0a6b8e5?d=identicon)[sdieunidou](/maintainers/sdieunidou)

---

Top Contributors

[![sdieunidou](https://avatars.githubusercontent.com/u/570763?v=4)](https://github.com/sdieunidou "sdieunidou (19 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (1 commits)")

---

Tags

symfonybundleerrortemplateserror-pages

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/symkit-error-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/symkit-error-bundle/health.svg)](https://phpackages.com/packages/symkit-error-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
