{"id":28439357,"url":"https://github.com/ishifoev/taggy","last_synced_at":"2025-09-07T11:34:36.074Z","repository":{"id":56946624,"uuid":"306528003","full_name":"ishifoev/taggy","owner":"ishifoev","description":"An Eloquent tagging package for laravel","archived":false,"fork":false,"pushed_at":"2020-11-05T04:36:54.000Z","size":46,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T02:08:16.910Z","etag":null,"topics":["laravel","php","taggy"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ishifoev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-23T04:21:00.000Z","updated_at":"2021-05-22T11:10:48.000Z","dependencies_parsed_at":"2022-08-21T07:50:08.253Z","dependency_job_id":null,"html_url":"https://github.com/ishifoev/taggy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ishifoev/taggy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishifoev%2Ftaggy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishifoev%2Ftaggy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishifoev%2Ftaggy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishifoev%2Ftaggy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ishifoev","download_url":"https://codeload.github.com/ishifoev/taggy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishifoev%2Ftaggy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262518099,"owners_count":23323301,"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":["laravel","php","taggy"],"created_at":"2025-06-06T02:08:16.686Z","updated_at":"2025-06-29T00:32:19.699Z","avatar_url":"https://github.com/ishifoev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel Taggy\n[![Build Status](https://travis-ci.org/AlexMalikov94/taggy.svg?branch=master)](\n    https://travis-ci.org/github/AlexMalikov94/taggy\n)\n[![Total Downloads](https://poser.pugx.org/amalikov/taggy/downloads)](//packagist.org/packages/amalikov/taggy)\n[![Latest Stable Version](https://poser.pugx.org/amalikov/taggy/v)](//packagist.org/packages/amalikov/taggy)\n[![Latest Unstable Version](https://poser.pugx.org/amalikov/taggy/v/unstable)](//packagist.org/packages/amalikov/taggy)\n[![License](https://poser.pugx.org/amalikov/taggy/license)](//packagist.org/packages/amalikov/taggy)\n\nAn Eloquent tagging package for Laravel\n\n## Installation\n\nInstall the package through [Composer](http://getcomposer.org/). \n\nRun the Composer require command from the Terminal:\n\n    composer require amalikov/taggy\n\nThe final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.\n\n`Amalikov\\Taggy\\TaggyServiceProvider::class`\n\nGo to the terminal in folder that you are migrate the `tags` and `taggable` tables:\n\n```php artisan migrate```\n\n## Usage\n\nAdd the `TaggableTrait` trait to a model you like to use `tags` on.\n\n```\nuse Amalikov\\Taggy\\TaggableTrait;\n\nclass YourEloquentModel extends Model\n{\n    use TaggableTrait;\n}\n```\n\nCreate a tags data for table that you use for example in controller or whatever place you want:\n\n```\nuse Illuminate\\Support\\Str;\n\n$tags = Tag::create([\n 'name' =\u003e 'Tag Name',\n 'slug' =\u003e Str::slug('Tag Name')\n]);\n\n```\n\nYou just need to pass the data that working with the models \n```\n$model = new YourEloquentModel;\n$model-\u003etitle = 'Test';\n$model-\u003esave();\n```\n\n## Set a new tags\n\nYou can set a new tags like this:\n\n```\n$model-\u003etag(['your_tag_name']);\n````\n\n## Untag existing tags\n\nYou can untag existing tag\n\n```\n$model-\u003euntag(['your_tag_name']);\n````\n\n## Untag all tags\n\n```\n$model-\u003euntag();\n````\n\n## Retag existing tag\n```\n$model-\u003eretag(['your_tag_name']);\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishifoev%2Ftaggy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishifoev%2Ftaggy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishifoev%2Ftaggy/lists"}