PHPackages                             jidoka1902/redirecting-fallbacks-symfony - 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. jidoka1902/redirecting-fallbacks-symfony

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

jidoka1902/redirecting-fallbacks-symfony
========================================

Integration to the jidoka1902/redirecting-fallbacks project for symfony

v1.0.2(7y ago)053BSD-3-ClausePHPPHP ^7.0

Since Dec 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jidoka1902/redirecting-fallbacks-symfony)[ Packagist](https://packagist.org/packages/jidoka1902/redirecting-fallbacks-symfony)[ RSS](/packages/jidoka1902-redirecting-fallbacks-symfony/feed)WikiDiscussions master Synced today

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

redirecting-fallbacks-symfony
=============================

[](#redirecting-fallbacks-symfony)

Symfony Integration for the "redirecting-fallbacks" project.

Examples
========

[](#examples)

It's all about the configuration.

Basic Configuration
-------------------

[](#basic-configuration)

First of all, load the integration and library classes as services. So you can wire them as you need.

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\:
    resource: '%kernel.project_dir%/vendor/jidoka1902/redirecting-fallbacks/src'
  Jidoka1902\RedirectingFallbacksSymfony\:
    resource: '%kernel.project_dir%/vendor/jidoka1902/redirecting-fallbacks-symfony/src'
```

After that you can decide what type of routes you want to specify in your configuration files. Either plain paths like "/" and "/blog" or symfony named routes like "app\_index".

For Symfony Routing - use the provided **FrameworkUrlGeneratorAdapter**:

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\UrlGenerator\UrlGenerator:
    alias: Jidoka1902\RedirectingFallbacksSymfony\UrlGenerator\FrameworkUrlGeneratorAdapter
```

If you prefer plain paths to redirect to use this config:

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\UrlGenerator\UrlGenerator:
    alias: Jidoka1902\RedirectingFallbacks\UrlGenerator\PassthroughUrlGenerator
```

Gloal Redirect on 404
---------------------

[](#gloal-redirect-on-404)

Now that you know how to configure your prefered path-type - let's have a basic example about one redirect path for all occuring 404 Status Reasons (NotFoundHttpException or plain ResponseCode 404).

- you have to wire the **SingleRedirectResolver** as alias for the RedirectResolver interface.

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\Resolver\RedirectResolver:
    alias: Jidoka1902\RedirectingFallbacks\Resolver\SingleRedirectResolver
```

- configure the route to redirect to

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\Resolver\SingleRedirectResolver:
    arguments:
      $target: "/"
```

è voila! every request resulting in a 404 state will be redirected to "/"

More Precise Redirects depending on Paths
-----------------------------------------

[](#more-precise-redirects-depending-on-paths)

After that basic configuration, lets have a look at how to create more individual 404-redirects. E.g. if someone enters an not found blog url because of a wrong slug which was not found in your storage, should that be redirected to the start-page or do you have a fancy blog post search site? Same here:

- link your desired RedirectResolver:

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\Resolver\RedirectResolver:
    alias: Jidoka1902\RedirectingFallbacks\Resolver\MultipleRedirectResolver
```

- configure it:

```
## config/services.yaml
services:
  Jidoka1902\RedirectingFallbacks\Resolver\MultipleRedirectResolver:
    arguments:
      $mapping:
        - { path: '/blog/', target: 'app_blog_search'}
        - { path: '/', target: 'app_index'}
```

But beware! the order of your mappings plays a role.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2916d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.0.1PHP ^7.0

### Community

Maintainers

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

---

Top Contributors

[![Jidoka1902](https://avatars.githubusercontent.com/u/15986183?v=4)](https://github.com/Jidoka1902 "Jidoka1902 (10 commits)")

---

Tags

symfonyintegrationredirect404fallbackredirectsredirecting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jidoka1902-redirecting-fallbacks-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/jidoka1902-redirecting-fallbacks-symfony/health.svg)](https://phpackages.com/packages/jidoka1902-redirecting-fallbacks-symfony)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

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

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[tilleuls/url-signer-bundle

Create and validate signed URLs with a limited lifetime in Symfony

81340.1k](/packages/tilleuls-url-signer-bundle)[eole/sandstone

Silex RestApi with Websockets.

1115.2k1](/packages/eole-sandstone)

PHPackages © 2026

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