PHPackages                             happyr/blaze-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. happyr/blaze-bundle

ActiveSymfony-bundle

happyr/blaze-bundle
===================

Write down your routing mapping at one place

2.0.0(6y ago)37.3k2MITPHPPHP ^7.2

Since Oct 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Happyr/BlazeBundle)[ Packagist](https://packagist.org/packages/happyr/blaze-bundle)[ Docs](http://developer.happyr.com/symfony2-bundles/happyr-blaze-bundle)[ RSS](/packages/happyr-blaze-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (10)Versions (7)Used By (0)

Happyr BlazeBundle
==================

[](#happyr-blazebundle)

[![Latest Version](https://camo.githubusercontent.com/adcdf9a6a930dcbb019732a3d80050f28d879910b47416923462a7c308d7691c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4861707079722f426c617a6542756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/Happyr/BlazeBundle/releases)[![Build Status](https://camo.githubusercontent.com/6545636bf41aeb27da3f06ebcfcc2082d695649ba3b45dfa51ad64a965b753b2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4861707079722f426c617a6542756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Happyr/BlazeBundle)[![Code Coverage](https://camo.githubusercontent.com/abadc96d5805b9f762a53ee3c68cbbd3e61bd8c2d3ebe791f09d8800a091abb4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4861707079722f426c617a6542756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Happyr/BlazeBundle)[![Quality Score](https://camo.githubusercontent.com/ccd2fa0be0e775f44be7e0962a61ce0a9893a72e52f95b240987da0729414f04/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4861707079722f426c617a6542756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Happyr/BlazeBundle)[![Total Downloads](https://camo.githubusercontent.com/de4ef7637c48af62db810920da1aea2d7b398bc8745b430f23475fd9e9e2fbb2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6861707079722f626c617a652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happyr/blaze-bundle)

This bundle lets you configure dynamic routes. A piece of code explains the benefit:

```
// Generate the path /blog-post/{post_id}/comment/{comment_id}/edit
Click here
Click here
```

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

[](#installation)

### Step 1: Using Composer

[](#step-1-using-composer)

```
$ composer require happyr/blaze-bundle
```

### Step 2: Register the bundle

[](#step-2-register-the-bundle)

To register the bundles with your kernel:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Happyr\BlazeBundle\HappyrBlazeBundle(),
    // ...
);
```

### Step 3: Configure the bundle

[](#step-3-configure-the-bundle)

```
# app/config/config.yml

happyr_blaze:
  objects:
    Acme\DemoBundle\Entity\Foo:
      edit:
        route: 'foo_edit'
        parameters: {id:'getId'}
      show:
        route: 'foo_show'
        parameters: {id:'getId'}

    Acme\DemoBundle\Entity\Bar:
      show:
        route: 'bar_show'
        parameters: {id:'getId'}

    Acme\DemoBundle\Entity\Baz:
      anything:
        route: 'baz_show'
        parameters: {id:'getId', foo_id:'getFoo.getId'}

    #if you need support for routes where the objects have no relation:
    Acme\DemoBundle\Entity\FooBar:
      manage:
        route: 'foobar_manage'
        parameters: [{id: 'getId'}, {baz_id: 'getId', baz_name: 'getName'}, {bazbar_id: 'getSlug'}]
        complementaryObjects: ["Acme\DemoBundle\Entity\Baz", "Acme\DemoBundle\Entity\BazBar"]
```

Usage
-----

[](#usage)

### Twig

[](#twig)

```
{# foo is a Foo object #}
Show Foo

{# baz is a Baz object #}
Show Baz

{# and the multiple objects .. #}
Show Baz
```

### PHP

[](#php)

```
use Happyr\BlazeBundle\Service\BlazeManagerInterface;

class MyController
{
    private $blaze;
    public function __construct(BlazeManagerInterface $blaze) {
        $this->blaze = $blaze;
    }

    public function SomeAction() {
        $blaze = $this->get(BlazeManagerInterface::class);

        $showUrl = $blaze->getPath($foo, 'show');
        $manageUrl = $blaze->getPath($foobar, 'show', array($baz, $bazbar));

        // ...
    }
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

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

Recently: every ~563 days

Total

6

Last Release

2311d ago

Major Versions

0.2.0 → 1.0.02017-01-23

1.1.0 → 2.0.02020-01-10

PHP version history (4 changes)0.1.0PHP &gt;=5.3.2

1.0.0PHP ^5.4 || ^7.0

1.1.0PHP ^7.0

2.0.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (42 commits)")

---

Tags

routingroutedynamicblaze

### Embed Badge

![Health badge](/badges/happyr-blaze-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M192](/packages/simplesamlphp-simplesamlphp)[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)[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)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)

PHPackages © 2026

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