PHPackages                             bestit/commercetools-product-slug-router-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. bestit/commercetools-product-slug-router-bundle

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

bestit/commercetools-product-slug-router-bundle
===============================================

A cmf router matching the slug to a found commercetools slug.

0.6.0(6y ago)08.7k1[6 PRs](https://github.com/bestit/commercetools-product-slug-router-bundle/pulls)proprietaryPHPPHP ^7.0

Since Dec 13Pushed 3y ago2 watchersCompare

[ Source](https://github.com/bestit/commercetools-product-slug-router-bundle)[ Packagist](https://packagist.org/packages/bestit/commercetools-product-slug-router-bundle)[ RSS](/packages/bestit-commercetools-product-slug-router-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (10)Versions (23)Used By (0)

Router for product slugs in a commercetools project
===================================================

[](#router-for-product-slugs-in-a-commercetools-project)

This router loads a product matching the given request uri to product slugs. It utilizes the cmf routing package heavily and registers the provided product router as a chained cmf router through the service tag "*router*".

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require bestit/commercetools-product-slug-router-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

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

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
