PHPackages                             genj/frontend-url-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. genj/frontend-url-bundle

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

genj/frontend-url-bundle
========================

Symfony Frontend Url bundle - Provides helpers to easily generate URLs for frontend routes from within an admin environment.

v1.0.0(10y ago)04.2k2MITPHP

Since Aug 9Pushed 9y ago2 watchersCompare

[ Source](https://github.com/genj/GenjFrontendUrlBundle)[ Packagist](https://packagist.org/packages/genj/frontend-url-bundle)[ RSS](/packages/genj-frontend-url-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

GenjFrontendUrlBundle
=====================

[](#genjfrontendurlbundle)

Provides helpers to generate frontend URLs. Your Entities need these methods in order for this bundle to work:

```
    public function getRouteName()
    {
        return 'genj_article_article_show';
    }

    public function getRouteParameters()
    {
        return array(
            'categoryType' => $this->getCategory()->getType(),
            'categorySlug' => $this->getCategory()->getSlug(),
            'slug'         => $this->getSlug()
        );
    }

```

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

[](#configuration)

You must set the name of your frontend environment in config.yml:

```
genj_frontend_url:
    frontend_environment: my_frontend_app

```

Usage
-----

[](#usage)

### Front-end URL generation

[](#front-end-url-generation)

From twig:

```
{{ object|genj_url_for_frontend }}

```

From PHP:

```
$urlGenerator = $this->container->get('genj_url_generator.routing.frontend.generator.url_generator');
$frontendUrl  = $urlGenerator->generateFrontendUrlForObject($object);

```

### Preview parameter

[](#preview-parameter)

It is possible to generate a URL to a 'preview controller'. You could e.g. restrict access to that controller and show non-cached versions of certain pages. If you do:

```
$frontendUrl  = $urlGenerator->generateFrontendUrlForObject($object, true);

```

Then the resulting URL would become /preview.php/path/to/page.

You can use the same thing from Twig too:

```
{{ object|genj_url_for_frontend(true) }}

```

More about environments:

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

3932d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d57ed47401a1ad476effd86580ad6a595cc480778030c7bce19d7536879104a?d=identicon)[genj](/maintainers/genj)

---

Tags

urlsymfonybundlegeneratorroutingfrontendgenj

### Embed Badge

![Health badge](/badges/genj-frontend-url-bundle/health.svg)

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

###  Alternatives

[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[norberttech/static-content-generator-bundle

Generate static html pages from your symfony application

373.7k](/packages/norberttech-static-content-generator-bundle)

PHPackages © 2026

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