PHPackages                             phpmentors/proxy-url-rewrite-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. phpmentors/proxy-url-rewrite-bundle

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

phpmentors/proxy-url-rewrite-bundle
===================================

A Symfony bundle to rewrite URLs for applications behind reverse proxies

v1.3.0(7y ago)56.1k4[1 issues](https://github.com/phpmentors-jp/proxy-url-rewrite-bundle/issues)[1 PRs](https://github.com/phpmentors-jp/proxy-url-rewrite-bundle/pulls)BSD-2-ClausePHPPHP &gt;=5.3.9

Since Oct 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/phpmentors-jp/proxy-url-rewrite-bundle)[ Packagist](https://packagist.org/packages/phpmentors/proxy-url-rewrite-bundle)[ RSS](/packages/phpmentors-proxy-url-rewrite-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (14)Versions (7)Used By (0)

ProxyURLRewriteBundle
=====================

[](#proxyurlrewritebundle)

A Symfony bundle to rewrite URLs for applications behind reverse proxies

[![Total Downloads](https://camo.githubusercontent.com/76a5969dd4c8e0c00feafb42c74f04ed6d4f10d3dace53c2a943084f8b79c864/68747470733a2f2f706f7365722e707567782e6f72672f7068706d656e746f72732f70726f78792d75726c2d726577726974652d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/phpmentors/proxy-url-rewrite-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/296189bd417205896acc26f13cf55ef5397658aa39f83ec46eb0ef170ec3f5d2/68747470733a2f2f706f7365722e707567782e6f72672f7068706d656e746f72732f70726f78792d75726c2d726577726974652d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/phpmentors/proxy-url-rewrite-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/8e41fbcc89d5a1952ccd293543ff2a8eb7e1a672ff3f2fdaf810b39c8fc1358b/68747470733a2f2f706f7365722e707567782e6f72672f7068706d656e746f72732f70726f78792d75726c2d726577726974652d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/phpmentors/proxy-url-rewrite-bundle)[![Build Status](https://camo.githubusercontent.com/4e11ad585793c77f8fabc3b353fb3f027dbfcf1eb68f6d3e718a0333283bc951/68747470733a2f2f7472617669732d63692e6f72672f7068706d656e746f72732d6a702f70726f78792d75726c2d726577726974652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phpmentors-jp/proxy-url-rewrite-bundle)

Features
--------

[](#features)

- URL rewriting for [Controller::generateUrl()](http://symfony.com/doc/current/quick_tour/the_controller.html#redirecting-and-forwarding) in controllers
- URL rewriting for [{{ asset('...') }}](http://symfony.com/doc/current/book/templating.html#linking-to-assets) in Twig templates

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

[](#installation)

ProxyURLRewriteBundle can be installed using [Composer](http://getcomposer.org/).

First, add the dependency to `phpmentors/proxy-url-rewrite-bundle` into your `composer.json` file as the following:

Stable version:

```
composer require phpmentors/proxy-url-rewrite-bundle "1.3.*"

```

Development version:

```
composer require phpmentors/proxy-url-rewrite-bundle "~1.4@dev"

```

Second, add `PHPMentorsProxyURLRewriteBundle` into your bundles to register in `AppKernel::registerBundles()` as the following:

```
...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new PHPMentors\ProxyURLRewriteBundle\PHPMentorsProxyURLRewriteBundle(),
        );
        ...
```

Configuration
-------------

[](#configuration)

`app/config/config.yml`:

```
...
phpmentors_proxy_url_rewrite:
    proxy_urls:
        foo_bar:
            path: "!^.*!"
            proxy_url: "http://www.example.com/foo/bar"
```

`app/config/config_dev.yml`:

```
...
phpmentors_proxy_url_rewrite:
    enabled: false
```

Support
-------

[](#support)

If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on [Issues](https://github.com/phpmentors-jp/proxy-url-rewrite-bundle/issues).

Copyright
---------

[](#copyright)

Copyright (c) 2014-2016, 2018-2019 KUBO Atsuhiro, All rights reserved.

License
-------

[](#license)

[The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Recently: every ~285 days

Total

6

Last Release

2849d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.3

v1.1.0PHP &gt;=5.3.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52985?v=4)[Atsuhiro Kubo](/maintainers/iteman)[@iteman](https://github.com/iteman)

---

Top Contributors

[![iteman](https://avatars.githubusercontent.com/u/52985?v=4)](https://github.com/iteman "iteman (110 commits)")

---

Tags

symfonyproxyURL rewriting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpmentors-proxy-url-rewrite-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/phpmentors-proxy-url-rewrite-bundle/health.svg)](https://phpackages.com/packages/phpmentors-proxy-url-rewrite-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[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)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[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)

PHPackages © 2026

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