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(1y ago)2265MITTwigPHP &gt;=7.4

Since Jun 4Pushed 1y 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 today

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

29

—

LowBetter than 57% of packages

Maintenance48

Moderate activity, may be stable

Popularity16

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

385d 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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)[open-dxp/opendxp

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

9421.6k61](/packages/open-dxp-opendxp)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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