PHPackages                             juanmf/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. juanmf/tag-bundle

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

juanmf/tag-bundle
=================

FPN Tag Bundle

v0.9.0(12y ago)023MITPHP

Since May 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/juanmf/FPNTagBundle)[ Packagist](https://packagist.org/packages/juanmf/tag-bundle)[ RSS](/packages/juanmf-tag-bundle/feed)WikiDiscussions master Synced 2d ago

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

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:

```
