Version 1.6.0 of the CakeDC Tags plugin for CakePHP has just been released, with an array of fixes and improvements, updated the code for 2.5, and also reformatted the documentation inline with the CakeDC Plugin Standard.
The Tags plugin allows you to tag anything in your application, including an additional semantic layer to your models.
Getting started with the plugin is easy. Just include the plugin, run the schema or migration to add the tags table, then add the following to your model:
public $actsAs = array('Tags.Taggable');
That's it. Then, finding tagged records is just as simple, by using the "tagged" find type, for example:
$this->Tagged->find('tagged', array('model' => 'Post'));
Alternatively, you could find all records by a specific tag:
$this->Tagged->find('tagged', array( 'by' => 'awesome', 'model' => 'Post' ));
As you can see, using the plugin is a breeze. Adding tags to form takes no extra effort either, simply add the input to your form, and the behavior takes care of the rest.
$this->Form->input('tags');
The plugin also comes packed with an admin interface, for managing tags, as well as a tag cloud helper, as a great addition to your applications. Check it out here, and give it a try.
All of our plugins are released as Open Source, free of charge, and maintained by the many contributions from the CakePHP community. We thank all of the contributors to the Tags plugin, and hope that the continued involvement helps keep the framework ecosystem healthy and strong, with many great plugins that help you build awesome applications.