PHPackages                             tenolo/referer-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tenolo/referer-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

tenolo/referer-bundle
=====================

Provides simple functions to use and set referer.

1.0.0(6y ago)1133MITPHPPHP ^5.6|^7.0

Since Jul 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tenolo/referer-bundle)[ Packagist](https://packagist.org/packages/tenolo/referer-bundle)[ Docs](https://tenolo.de)[ RSS](/packages/tenolo-referer-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

[![tenolo](https://camo.githubusercontent.com/9f4aa7f77c4f4ca27e81b67e9eb1a599adfe5c988675d78e43c66f41dd47ef12/68747470733a2f2f636f6e74656e742e74656e6f6c6f2e636f6d2f74656e6f6c6f2e706e67)](https://tenolo.de)

[![PHP Version](https://camo.githubusercontent.com/0e794d8788b63ccab8d338affc5fcceda0d6b98f48ec2786823256ed9e6a25f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f74656e6f6c6f2f726566657265722d62756e646c652e737667)](https://packagist.org/packages/tenolo/referer-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/d75857076585377171c5930a843d2311f13858d41c935d8d0c85052a2b2a8375/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656e6f6c6f2f726566657265722d62756e646c652e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/tenolo/referer-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/37084b2fdf89c39c531436f937995b339b3d0ee965281faad501388dd929f0b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f74656e6f6c6f2f726566657265722d62756e646c652e7376673f6c6162656c3d756e737461626c65)](https://packagist.org/packages/tenolo/referer-bundle)[![Total Downloads](https://camo.githubusercontent.com/a82497662eb09ab7322a97b409babde52dd4c39a9e5b454642db4483ffc78535/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656e6f6c6f2f726566657265722d62756e646c652e737667)](https://packagist.org/packages/tenolo/referer-bundle)[![Total Downloads](https://camo.githubusercontent.com/b41450e9a7ed5c961252012a3ddab2b03c8443ac62bee0a4a79ab95b4f4fc75c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f74656e6f6c6f2f726566657265722d62756e646c652e737667)](https://packagist.org/packages/tenolo/referer-bundle)[![License](https://camo.githubusercontent.com/7958ead9b3992a48d5185cd7f66bd88397c9d3673dffee7410bf19adcedb9e56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74656e6f6c6f2f726566657265722d62756e646c652e737667)](https://packagist.org/packages/tenolo/referer-bundle)

Referer Bundle
==============

[](#referer-bundle)

Helpful in Twig Templates. Allows you to set a static referer that can be set across multiple page views using the session to get back to a specific page using a Twig function. This can be used to generate a "Back" button.

Install instructions
--------------------

[](#install-instructions)

First you need to add `tenolo/referer-bundle` to `composer.json`:

Let Composer do it for you.

```
$ composer require tenolo/referer-bundle
```

or do it manually

```
{
   "require": {
        "tenolo/referer-bundle": "~1.0"
    }
}
```

Please note that `dev-master` latest development version. Of course you can also use an explicit version number, e.g., `1.0.*`.

Usage
-----

[](#usage)

#### To go back to the last page

[](#to-go-back-to-the-last-page)

```
{# check for a static referer #}
{% if referer_has() %}
    Go back
{% endif %}
```

If no static referer was set, the referer from the header of the request is used.

#### To set a static referer.

[](#to-set-a-static-referer)

```
Next Page
```

The link is manipulated so that the library remembers the current page. If the Twig function "referer\_uri" is called on one of the later pages, a link is generated that links back to the current page.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2492d ago

### Community

Maintainers

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

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

---

Top Contributors

[![nicklog](https://avatars.githubusercontent.com/u/462920?v=4)](https://github.com/nicklog "nicklog (9 commits)")

---

Tags

symfonybundlereferertenolo

### Embed Badge

![Health badge](/badges/tenolo-referer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tenolo-referer-bundle/health.svg)](https://phpackages.com/packages/tenolo-referer-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[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)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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