michalsn/codeigniter-tags 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

michalsn/codeigniter-tags

最新稳定版本:v1.1.2

Composer 安装命令:

composer require michalsn/codeigniter-tags

包简介

Tags for CodeIgniter 4 framework

README 文档

README

A library that helps you build tags functionality around your existing models in the CodeIgniter 4 framework.

PHPUnit PHPStan Deptrac Coverage Status

PHP CodeIgniter

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;

    // ...
}

Docs

https://michalsn.github.io/codeigniter-tags/

统计信息

  • 总下载量: 3.49k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-28