Skip to content

Latest commit

 

History

102 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tag Input Bundle

CI Packagist Version Packagist Downloads License PHP Symfony GitHub stars Coverage

⭐ Found this useful? Install from Packagist · Give it a star on GitHub so more developers can find it.

Symfony FormType for multi-tag text inputs powered by Tagify.

FrankenPHP Friendly Worker Mode

This bundle is 100% compatible with FrankenPHP worker mode when the host runs with FRANKENPHP_RESET_KERNEL=false (sticky Kernel). See the worker audit.

Demo navbar and tag input with existing tags
Full demo — existing tags
Demo navbar and tag input after adding a new tag
Full demo — new tag added

Features

  • TagType::class for keywords, labels, emails, skills, categories, and more.
  • Tagify UI on a standard text input with Twig form themes.
  • Model value as array<string> or comma-separated string.
  • Whitelist, max tags, pattern validation, duplicates, and dropdown suggestions.
  • TypeScript + Vite assets bundling Tagify in src/Resources/assets.

Version information

Current stable release: v1.2.1 (changelog).

Quick usage

use Nowo\TagInputBundle\Form\TagType;

$builder->add('tags', TagType::class, [
    'placeholder' => 'Add tags and press Enter',
    'max_tags' => 10,
    'whitelist' => ['php', 'symfony', 'twig'],
    'input_class' => 'form-control',
]);

Include the bundle assets in your layout or form template:

<link rel="stylesheet" href="{{ asset('tag-input.css', 'nowo_tag_input') }}">
<script src="{{ asset('tag-input.js', 'nowo_tag_input') }}"></script>

Run php bin/console assets:install public after installing the bundle.

The submitted value is an array of strings by default, e.g. ['php', 'symfony'].

Documentation

Additional documentation

Tests and coverage

  • PHP: 100%
  • TS/JS: 96%
  • Python: N/A

About

Symfony FormType for multi-tag text inputs powered by Tagify. Whitelist, max tags, and Vite-built assets.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages