PHPackages                             lubna/custom-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. lubna/custom-error-bundle

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

lubna/custom-error-bundle
=========================

Symfony bundle to customize and override default error pages (404, 403, 500, 401) with Twig templates and error controller support.

v1.1.0(11mo ago)2256MITTwigPHP &gt;=7.4

Since Jun 4Pushed 11mo agoCompare

[ Source](https://github.com/Lubna93/CustomErrorBundle)[ Packagist](https://packagist.org/packages/lubna/custom-error-bundle)[ RSS](/packages/lubna-custom-error-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

CustomErrorBundle
=================

[](#customerrorbundle)

**Customizable error pages for Symfony 6.2 and 7+**
This bundle replaces Symfony’s default error pages (404, 403, 500, etc.) with user-friendly Twig templates.

Features
--------

[](#features)

- Handles 404, 403, 500, 401 and other HTTP errors
- Shows a login prompt for 401 errors
- Custom Twig templates

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

[](#installation)

Install the bundle via Composer:

```
composer require lubna/custom-error-bundle

```

🔧 Configuration
---------------

[](#-configuration)

### 1. Register the bundle

[](#1-register-the-bundle)

In `config/bundles.php`:

```
return [
    CustomError\Bundle\CustomErrorBundle::class => ['all' => true],
];

```

If you want the bundle to be active only in production, you can use:

```
return [
    CustomError\Bundle\CustomErrorBundle::class => ['prod' => true],
];

```

### 2. Register the error controller

[](#2-register-the-error-controller)

In `config/services.yaml`:

```
services:
    CustomError\Bundle\Controller\ErrorController:
        tags: ['controller.service_arguments']

```

Author
------

[](#author)

Made with ❤️ by [Lubna](https://github.com/Lubna93)
Feel free to contribute, fork, or open issues.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance52

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~9 days

Total

2

Last Release

339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ecb9e4e74dbb7771a5baa7471692bc352047041c4243bb4558baf5a2fbf5629?d=identicon)[Lubna93](/maintainers/Lubna93)

---

Top Contributors

[![Lubna93](https://avatars.githubusercontent.com/u/89145312?v=4)](https://github.com/Lubna93 "Lubna93 (7 commits)")

### Embed Badge

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

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1635.6M72](/packages/symfony-ux-live-component)[twig/html-extra

A Twig extension for HTML

787.6M41](/packages/twig-html-extra)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)

PHPackages © 2026

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