PHPackages                             grizzlylab/deny-routes-by-env-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. [HTTP &amp; Networking](/categories/http)
4. /
5. grizzlylab/deny-routes-by-env-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

grizzlylab/deny-routes-by-env-bundle
====================================

Deny routes for one or several environments

1.1.4(4y ago)415.7k↓50%MITPHPPHP ^7.4 || ^8.0

Since Jul 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/grizzlylab/deny-routes-by-env-bundle)[ Packagist](https://packagist.org/packages/grizzlylab/deny-routes-by-env-bundle)[ Docs](https://github.com/grizzlylab/deny-routes-by-env-bundle)[ RSS](/packages/grizzlylab-deny-routes-by-env-bundle/feed)WikiDiscussions master Synced 1mo ago

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

DenyRoutesByEnvBundle
=====================

[](#denyroutesbyenvbundle)

This bundle for Symfony allows you to deny some routes for a specific environment. When a route is denied, it will create a flash message and redirect the user to the "redirection route".

Example: You don't want your users to be able to access the route "acme\_xyz" when the environment is "dev" or "demo".

\###1. Installation

- `composer require 'grizzlylab/deny-routes-by-env-bundle@dev-master'`
- in AppKernel.php: `new Grizzlylab\Bundle\DenyRoutesByEnvBundle\GrizzlylabDenyRoutesByEnvBundle()`

\###2. Configuration

a) Configure your main configuration file (app/config/config.yml):

```
#app/config/config.yml
grizzlylab_deny_routes_by_env:
    message_type:         grizzlylab_deny_routes_by_env.danger
    denied_routes:        [] # Required
    redirection_route:    # Required
        name:                 ~
        parameters:           []

```

b) Then configure each config file related to the concerned environments (e.g. app/config/config\_dev.yml)

```
#app/config/config_dev.yml
grizzlylab_deny_routes_by_env:
    # deny these routes for the environment "dev"
    denied_routes:        ['first_route', 'second_route'] # Required

```

License
-------

[](#license)

This bundle is under the MIT license.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

 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 ~415 days

Recently: every ~125 days

Total

6

Last Release

1498d ago

PHP version history (3 changes)1.0PHP &gt;=7.0

1.1PHP ^7.4

1.1.4PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3ade683eeb1b3ea698bb6a8712378758bdcd1a3f01ff35c343aa0821e831654?d=identicon)[grizzlylab](/maintainers/grizzlylab)

---

Top Contributors

[![grizzlylab](https://avatars.githubusercontent.com/u/2612537?v=4)](https://github.com/grizzlylab "grizzlylab (12 commits)")

---

Tags

routingenvironment

### Embed Badge

![Health badge](/badges/grizzlylab-deny-routes-by-env-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/grizzlylab-deny-routes-by-env-bundle/health.svg)](https://phpackages.com/packages/grizzlylab-deny-routes-by-env-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[friendsofsymfony/http-cache-bundle

Set path based HTTP cache headers and send invalidation requests to your HTTP cache

43813.2M47](/packages/friendsofsymfony-http-cache-bundle)

PHPackages © 2026

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