PHPackages                             mtrunkat/php-enhanced-urlgenerator - 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. mtrunkat/php-enhanced-urlgenerator

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

mtrunkat/php-enhanced-urlgenerator
==================================

Url Genarater for Silex enhanced by some features.

010PHP

Since Jan 22Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mtrunkat/php-enhanced-urlgenerator)[ Packagist](https://packagist.org/packages/mtrunkat/php-enhanced-urlgenerator)[ RSS](/packages/mtrunkat-php-enhanced-urlgenerator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

EnhancedUrlGenerator
====================

[](#enhancedurlgenerator)

This is Symfony [Url Generator](http://api.symfony.com/2.4/Symfony/Component/Routing/Generator/UrlGenerator.html) class enhanced by two features:

- It preserves given set of query parameters in every generated url.
- It allows to generate random token for user transaction. This token is preserved in every url until the user leaves the site. It can be used for clicktracking or to track the users in simple access log.

It's boundled with [Silex](http://silex.sensiolabs.org/) Service provider. It works exactly the same as the original [Silex Url Generator Provider](http://silex.sensiolabs.org/doc/providers/url_generator.html). To install Enhanced Url Generator add following line into your composer.json

```
"mtrunkat/php-enhanced-urlgenerator": "dev-master"

```

and call update/install command of composer. Then register provider to Silex:

```
$app->register(new \Trunkat\EnhancedUrlGeneratorProvider(), array(
    'url_generator.preserve' => array('key1', 'keyb'),
));
```

You can use it the same as original Silex Url Generator:

```
$app['url_generator']->generate('blog', array('someParam' => 'someValue'));
```

Resulting url will contain "key1" and "key2" as query parameters. To activate the random token feature configure provider following way:

```
$app->register(new \Trunkat\EnhancedUrlGeneratorProvider(), array(
    'url_generator.preserve' => array('key1', 'keyb'),
    'url_generator.token' => 'keyNameForToken',
    'url_generator.token_length' => 5,
));
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/594801?v=4)[Marek Trunkát](/maintainers/mtrunkat)[@mtrunkat](https://github.com/mtrunkat)

---

Top Contributors

[![mtrunkat](https://avatars.githubusercontent.com/u/594801?v=4)](https://github.com/mtrunkat "mtrunkat (7 commits)")

### Embed Badge

![Health badge](/badges/mtrunkat-php-enhanced-urlgenerator/health.svg)

```
[![Health](https://phpackages.com/badges/mtrunkat-php-enhanced-urlgenerator/health.svg)](https://phpackages.com/packages/mtrunkat-php-enhanced-urlgenerator)
```

###  Alternatives

[vantran/lunar-calendar

Thư viện PHP Âm lịch Việt Nam

101.7k](/packages/vantran-lunar-calendar)

PHPackages © 2026

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