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

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

coosos/tag-bundle
=================

Symfony TagBundle

1.0.5(8y ago)2429MITPHPPHP &gt;=7.0

Since Jul 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Coosos/TagBundle)[ Packagist](https://packagist.org/packages/coosos/tag-bundle)[ Docs](https://github.com/Coosos)[ RSS](/packages/coosos-tag-bundle/feed)WikiDiscussions master Synced 3d ago

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

Coosos/TagBundle
================

[](#coosostagbundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/a1c3776f8e059a748bf689a25fa8e9384a0ac2c78586da6d80e222287d825652/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31356235636132632d666630372d343665302d623235382d6461383231383936316531322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/15b5ca2c-ff07-46e0-b258-da8218961e12)

*TagBundle is a bundle created from the [Grafikart video](https://www.grafikart.fr/tutoriels/symfony/tags-form-type-882).*

Requirements
------------

[](#requirements)

- Symfony 3.0 and greater
- PHP 7.0 and greater
- [jQuery tagEditor](https://github.com/Pixabay/jQuery-tagEditor) (optional)
- [jQuery UI Autocomplete](https://jqueryui.com/autocomplete/) (optional)

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 coosos/tag-bundle

```

This command is used if composer is installed in your system.

### Step 2: Enable the Bundle

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

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project :

```
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Coosos\TagBundle\CoososTagBundle(),
        );
        // ...
    }
    // ...
}

```

### Step 3: Insert tag entity in your database

[](#step-3-insert-tag-entity-in-your-database)

Use this command to insert tag entity in your database

```
$ php bin/console doctrine:schema:update -f

```

Usage
-----

[](#usage)

### Tags fields in entity

[](#tags-fields-in-entity)

```
namespace AppBundle\Entity;

use Coosos\TagBundle\Model\Taggable\TaggableTrait;

class Actuality {

    use TaggableTrait;

}

```

### Form type

[](#form-type)

To create a field for tags, you must use a field type provided by the bundle

```
use Coosos\TagBundle\Form\Type\TagsType;
...
$builder->add("tags", TagsType::class);

```

#### Options

[](#options)

##### Configuration list

[](#configuration-list)

   Config name Default value Values Description     coosos\_tag\_auto\_complete true true | false If you want to use auto completion   coosos\_tag\_persist\_new true true | false If you want the tags not exist is created   coosos\_tag\_category "default" string If you want to separate tags in different categories  ##### Usage

[](#usage-1)

```
$builder->add("tags", TagsType::class, [
    ...,
    "coosos_tag_auto_complete"  => false,
    "coosos_tag_persist_new"    => false,
    "coosos_tag_category"       => "House"
]);

```

### Routing

[](#routing)

You must include the route to the bundle controller

```
# app/config/routing.yml

tag:
    resource: "@CoososTagBundle/Controller/"
    type: annotation

```

### Form theme

[](#form-theme)

You must have [jQuery tagEditor](https://github.com/Pixabay/jQuery-tagEditor) included in your project

```
twig:
    form_themes:
        - "CoososTagBundle:Form:fields.html.twig"

```

##### Auto complete

[](#auto-complete)

The auto completion uses the library [jQuery UI Autocomplete](https://jqueryui.com/autocomplete/)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

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

Recently: every ~58 days

Total

6

Last Release

2992d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5632327?v=4)[Rémy Lescallier](/maintainers/Coosos)[@Coosos](https://github.com/Coosos)

---

Top Contributors

[![Coosos](https://avatars.githubusercontent.com/u/5632327?v=4)](https://github.com/Coosos "Coosos (85 commits)")

---

Tags

symfonyentitytageditorform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/coosos-tag-bundle/health.svg)

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

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[norberttech/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

28310.8k](/packages/norberttech-aceeditor-bundle)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[shapecode/hidden-entity-type-bundle

Hidden field for Symfony entities

28428.6k1](/packages/shapecode-hidden-entity-type-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)

PHPackages © 2026

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