michalsn / codeigniter-tags
Tags for CodeIgniter 4 framework
v1.1.2
2025-11-23 09:19 UTC
Requires
- php: ^8.1
- myth/collection: dev-develop
Requires (Dev)
- codeigniter4/devkit: ^1.0
- codeigniter4/framework: ^4.1
This package is auto-updated.
Last update: 2026-02-15 12:45:48 UTC
README
A library that helps you build tags functionality around your existing models in the CodeIgniter 4 framework.
Installation
composer require michalsn/codeigniter-tags
Migrate your database:
php spark migrate --all
Configuration
Add HasTags trait to your model and initialize tags with initTags() method.
class ExampleModel extends BaseModel { use HasTags; // ... protected function initialize() { $this->initTags(); } // ... }
And if you use Entity class, add TaggableEntity trait to it:
class Example extends Entity { use TaggableEntity; // ... }