{"id":14987314,"url":"https://github.com/michalsn/codeigniter-tags","last_synced_at":"2025-04-11T23:52:45.569Z","repository":{"id":196968624,"uuid":"697389169","full_name":"michalsn/codeigniter-tags","owner":"michalsn","description":"Tags functionality for Codeigniter 4 framework","archived":false,"fork":false,"pushed_at":"2024-12-30T07:57:08.000Z","size":601,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-11T23:52:38.924Z","etag":null,"topics":["codeigniter","codeigniter4","php","php81","tags"],"latest_commit_sha":null,"homepage":"https://michalsn.github.io/codeigniter-tags/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michalsn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-27T16:19:23.000Z","updated_at":"2024-12-29T15:57:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"83b79c20-48cc-4840-b8c9-8d4a17fd8d59","html_url":"https://github.com/michalsn/codeigniter-tags","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.09375,"last_synced_commit":"f85e724b015e764f0ce9134cccdf28bb55eda431"},"previous_names":["michalsn/codeigniter-tags"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalsn","download_url":"https://codeload.github.com/michalsn/codeigniter-tags/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497851,"owners_count":21113984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","codeigniter4","php","php81","tags"],"created_at":"2024-09-24T14:14:25.857Z","updated_at":"2025-04-11T23:52:45.533Z","avatar_url":"https://github.com/michalsn.png","language":"PHP","readme":"# CodeIgniter Tags\n\nA library that helps you build **tags** functionality around your existing models in the CodeIgniter 4 framework.\n\n[![PHPUnit](https://github.com/michalsn/codeigniter-tags/actions/workflows/phpunit.yml/badge.svg)](https://github.com/michalsn/codeigniter-tags/actions/workflows/phpunit.yml)\n[![PHPStan](https://github.com/michalsn/codeigniter-tags/actions/workflows/phpstan.yml/badge.svg)](https://github.com/michalsn/codeigniter-tags/actions/workflows/phpstan.yml)\n[![Deptrac](https://github.com/michalsn/codeigniter-tags/actions/workflows/deptrac.yml/badge.svg)](https://github.com/michalsn/codeigniter-tags/actions/workflows/deptrac.yml)\n[![Coverage Status](https://coveralls.io/repos/github/michalsn/codeigniter-tags/badge.svg?branch=develop)](https://coveralls.io/github/michalsn/codeigniter-tags?branch=develop)\n\n![PHP](https://img.shields.io/badge/PHP-%5E8.1-blue)\n![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%5E4.3-blue)\n\n## Installation\n\n    composer require michalsn/codeigniter-tags\n\nMigrate your database:\n\n    php spark migrate --all\n\n## Configuration\n\nAdd `HasTags` trait to your model and initialize tags with `initTags()` method.\n\n```php\nclass ExampleModel extends BaseModel\n{\n    use HasTags;\n\n    // ...\n\n    protected function initialize()\n    {\n        $this-\u003einitTags();\n    }\n\n    // ...\n}\n```\n\nAnd if you use [Entity](https://www.codeigniter.com/user_guide/models/entities.html) class, add `TaggableEntity` trait to it:\n\n```php\nclass Example extends Entity\n{\n    use TaggableEntity;\n\n    // ...\n}\n```\n\n## Docs\n\nhttps://michalsn.github.io/codeigniter-tags/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalsn%2Fcodeigniter-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-tags/lists"}