{"id":20388592,"url":"https://github.com/efureev/yii2-tagsinput","last_synced_at":"2025-05-08T10:32:34.987Z","repository":{"id":56975581,"uuid":"67578155","full_name":"efureev/yii2-tagsinput","owner":"efureev","description":"Bootstrap Tags Input is a jQuery plugin providing a Twitter Bootstrap user interface for managing tags.","archived":true,"fork":false,"pushed_at":"2016-09-08T07:09:55.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T12:42:28.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/efureev.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}},"created_at":"2016-09-07T06:21:00.000Z","updated_at":"2024-04-16T05:48:12.000Z","dependencies_parsed_at":"2022-08-21T12:20:13.193Z","dependency_job_id":null,"html_url":"https://github.com/efureev/yii2-tagsinput","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fyii2-tagsinput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fyii2-tagsinput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fyii2-tagsinput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fyii2-tagsinput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efureev","download_url":"https://codeload.github.com/efureev/yii2-tagsinput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045966,"owners_count":21845812,"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":[],"created_at":"2024-11-15T03:11:45.771Z","updated_at":"2025-05-08T10:32:34.642Z","avatar_url":"https://github.com/efureev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"yii2-tagsinput\n==============\n\n[![GitHub version](https://badge.fury.io/gh/efureev%2Fyii2-tagsinput.svg)](https://badge.fury.io/gh/efureev%2Fyii2-tagsinput) [![Build Status](https://travis-ci.org/efureev/yii2-tagsinput.svg?branch=master)](https://travis-ci.org/efureev/yii2-tagsinput) [![Dependency Status](https://gemnasium.com/badges/github.com/efureev/yii2-tagsinput.svg)](https://gemnasium.com/github.com/efureev/yii2-tagsinput) ![](https://reposs.herokuapp.com/?path=efureev/yii2-tagsinput) [![Code Climate](https://codeclimate.com/github/efureev/yii2-tagsinput/badges/gpa.svg)](https://codeclimate.com/github/efureev/yii2-tagsinput) [![Test Coverage](https://codeclimate.com/github/efureev/yii2-tagsinput/badges/coverage.svg)](https://codeclimate.com/github/efureev/yii2-tagsinput/coverage)\n\n\n## without Model\n\n```js\nvar inputUsers = $('\u003cinput type=\"text\"\u003e'),\n    users = new Bloodhound({\n        datumTokenizer: Bloodhound.tokenizers.obj.whitespace('title'),\n        queryTokenizer: Bloodhound.tokenizers.whitespace,\n        prefetch      : {\n            url   : '/users.json',\n            cache : false,\n            filter: function (list) {\n                return $.map(list, function (users) {\n                    return {text: user.name};\n                });\n            }\n        }\n    });\nhubs.initialize();\n\ninputUsers.tagsinput({\n    typeaheadjs: {\n        displayKey: 'text',\n        trimValue : true,\n        valueKey  : 'text',\n        name      : 'users',\n        source    : users.ttAdapter()\n    }\n});\n```\n## with Model\n\n```php\n\u003c?= $form-\u003efield($model, 'users', ['options' =\u003e [\n    'class' =\u003e 'form-group',\n]])-\u003ewidget(\n    \\efureev\\tagsinput\\TagsInput::className(),\n    [\n        'preJS' =\u003e 'var users = new Bloodhound({\n            datumTokenizer: Bloodhound.tokenizers.obj.whitespace(\"title\"),\n            queryTokenizer: Bloodhound.tokenizers.whitespace,\n            prefetch : { url : \"/users\", cache : false,\n                filter: function (list) {\n                    return $.map(list, function (user) {\n                        return {text: user.name};\n                    });\n                }\n            }\n        });',\n        'clientOptions' =\u003e [\n            'typeaheadjs' =\u003e [\n                'displayKey' =\u003e 'text',\n                'trimValue'  =\u003e true,\n                'valueKey'   =\u003e 'text',\n                'name'       =\u003e 'users',\n                'source'     =\u003e new \\yii\\web\\JsExpression('users.ttAdapter()')\n            ]\n        ]\n    ]\n);\n?\u003e\n```\n\n# Tests\n\n`vendor/bin/phpunit`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Fyii2-tagsinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefureev%2Fyii2-tagsinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Fyii2-tagsinput/lists"}