PHPackages                             fpn/tag-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. fpn/tag-bundle

ActiveSymfony-bundle

fpn/tag-bundle
==============

FPN Tag Bundle

v0.9.0(12y ago)76407.7k↓38.7%50[8 issues](https://github.com/FabienPennequin/FPNTagBundle/issues)[4 PRs](https://github.com/FabienPennequin/FPNTagBundle/pulls)2MITPHP

Since May 7Pushed 7y ago6 watchersCompare

[ Source](https://github.com/FabienPennequin/FPNTagBundle)[ Packagist](https://packagist.org/packages/fpn/tag-bundle)[ RSS](/packages/fpn-tag-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (2)

FPNTagBundle
============

[](#fpntagbundle)

This bundle adds tagging to your Symfony project, with the ability to associate tags with any number of different entities. This bundle integrates the [DoctrineExtensions-Taggable](https://github.com/FabienPennequin/DoctrineExtensions-Taggable)library, which handles most of the hard work.

**Navigation**

1. [Installation](#installation)
2. [Making an entity taggable](#taggable-entity)
3. [Using Tags](#using-tags)

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

[](#installation)

### Use Composer

[](#use-composer)

You can use composer to add the bundle :

```
``` sh
$ php composer.phar require fpn/tag-bundle
```

```

Or you can edit your composer.json, and add :

```
"require": {
    "fpn/tag-bundle":"dev-master",
}

```

### Register the bundle

[](#register-the-bundle)

To start using the bundle, register it in your Kernel. This file is usually located at `app/AppKernel`:

```
public function registerBundles()
{
    $bundles = array(
        // ...
        new FPN\TagBundle\FPNTagBundle(),
    );
)

```

### Create your `Tag` and `Tagging` entities

[](#create-your-tag-and-tagging-entities)

To use this bundle, you'll need to create two new entities: `Tag` and `Tagging`. You place these in any bundle, but each should look like this:

```
