PHPackages                             agence-adeliom/easy-redirect-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. agence-adeliom/easy-redirect-bundle

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

agence-adeliom/easy-redirect-bundle
===================================

Symfony redirection bundle for EasyAdmin

3.0.2(3mo ago)67.5k2[1 issues](https://github.com/agence-adeliom/easy-redirect-bundle/issues)MITPHPPHP &gt;=8.2

Since Jan 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/agence-adeliom/easy-redirect-bundle)[ Packagist](https://packagist.org/packages/agence-adeliom/easy-redirect-bundle)[ Docs](https://github.com/agence-adeliom/easy-redirect-bundle)[ RSS](/packages/agence-adeliom-easy-redirect-bundle/feed)WikiDiscussions 2.x Synced 1mo ago

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

[![Adeliom](https://camo.githubusercontent.com/cfcea17cd5354fe5c47c2873d4ec93e8d84e1468240bc616fdfb9196dc032093/68747470733a2f2f6164656c696f6d2e636f6d2f7075626c69632f75706c6f6164732f323031372f30392f4164656c696f6d5f6c6f676f2e706e67)](https://camo.githubusercontent.com/cfcea17cd5354fe5c47c2873d4ec93e8d84e1468240bc616fdfb9196dc032093/68747470733a2f2f6164656c696f6d2e636f6d2f7075626c69632f75706c6f6164732f323031372f30392f4164656c696f6d5f6c6f676f2e706e67)[![Quality gate](https://camo.githubusercontent.com/e3ece5f4c00536977e2866371661ac31236a38af3393d3b5f72986f76eb52fd7/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f7175616c6974795f676174653f70726f6a6563743d6167656e63652d6164656c696f6d5f656173792d72656469726563742d62756e646c65)](https://sonarcloud.io/dashboard?id=agence-adeliom_easy-redirect-bundle)

Easy Redirect Bundle
====================

[](#easy-redirect-bundle)

This bundle adds entities for redirects and 404 errors.

For redirects, 404 errors are intercepted and the requested path is looked up. If a match is found it redirects to the found redirect's destination. The count and last accessed date are updated as well. A redirect form type and validation is available as well.

404 errors can be logged as well. Each 404 error is it's own record in the database. The path, full URL, timestamp, and referer are stored. Storing each error as a separate record allows viewing statistics over time and seeing all the referer URLs. When a redirect is created or updated, 404 records that match it's path are deleted.

Versions
--------

[](#versions)

Repository BranchVersionSymfony CompatibilityPHP CompatibilityStatus`3.x``3.x``6.4`, and `7.x``8.2` or higherNew features and bug fixes`2.x``2.x``5.4`, and `6.x``8.0.2` or higherBug fixes`1.x``1.x``4.4`, and `5.x``7.2.5` or higherNo longer maintainedInstallation with Symfony Flex
------------------------------

[](#installation-with-symfony-flex)

Add our recipes endpoint

```
{
  "extra": {
    "symfony": {
      "endpoint": [
        "https://api.github.com/repos/agence-adeliom/symfony-recipes/contents/index.json?ref=flex/main",
        ...
        "flex://defaults"
      ],
      "allow-contrib": true
    }
  }
}
```

Install with composer

```
composer require agence-adeliom/easy-redirect-bundle
```

### Setup database

[](#setup-database)

#### Using doctrine migrations

[](#using-doctrine-migrations)

```
php bin/console doctrine:migration:diff
php bin/console doctrine:migration:migrate
```

#### Without

[](#without)

```
php bin/console doctrine:schema:update --force
```

Documentation
-------------

[](#documentation)

### Manage redirect in your Easyadmin dashboard

[](#manage-redirect-in-your-easyadmin-dashboard)

Go to your dashboard controller, example : `src/Controller/Admin/DashboardController.php`

```
