{"id":15169497,"url":"https://github.com/2amigos/yii2-selectize-widget","last_synced_at":"2025-10-01T02:31:22.223Z","repository":{"id":13215440,"uuid":"15899602","full_name":"2amigos/yii2-selectize-widget","owner":"2amigos","description":"Selectize From Brian Reavis Yii2 Widget  ","archived":true,"fork":false,"pushed_at":"2018-06-08T14:21:01.000Z","size":124,"stargazers_count":73,"open_issues_count":9,"forks_count":41,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-09-22T22:01:58.388Z","etag":null,"topics":["2amigos","selectize","widget","yii"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2amigos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-14T11:04:00.000Z","updated_at":"2024-05-15T11:26:50.000Z","dependencies_parsed_at":"2022-08-24T01:31:45.945Z","dependency_job_id":null,"html_url":"https://github.com/2amigos/yii2-selectize-widget","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2amigos%2Fyii2-selectize-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2amigos%2Fyii2-selectize-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2amigos%2Fyii2-selectize-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2amigos%2Fyii2-selectize-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2amigos","download_url":"https://codeload.github.com/2amigos/yii2-selectize-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875269,"owners_count":16554660,"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":["2amigos","selectize","widget","yii"],"created_at":"2024-09-27T07:02:23.383Z","updated_at":"2025-10-01T02:31:16.895Z","avatar_url":"https://github.com/2amigos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selectize JS Widget for Yii2\n\n[![Latest Version](https://img.shields.io/github/tag/2amigos/yii2-selectize-widget.svg?style=flat-square\u0026label=release)](https://github.com/2amigos/yii2-selectize-widget/tags)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/2amigos/yii2-selectize-widget/master.svg?style=flat-square)](https://travis-ci.org/2amigos/yii2-selectize-widget)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/2amigos/yii2-selectize-widget.svg?style=flat-square)](https://scrutinizer-ci.com/g/2amigos/yii2-selectize-widget/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/2amigos/yii2-selectize-widget.svg?style=flat-square)](https://scrutinizer-ci.com/g/2amigos/yii2-selectize-widget)\n[![Total Downloads](https://img.shields.io/packagist/dt/2amigos/yii2-selectize-widget.svg?style=flat-square)](https://packagist.org/packages/2amigos/yii2-selectize-widget)\n\n[Selectize](https://selectize.github.io/selectize.js/) is an extensible jQuery-based custom \u0026lt;select\u0026gt; UI control. It's useful for tagging, contact lists, country selectors, and so on. It clocks in at around ~7kb (gzipped). The goal is to provide a solid \u0026 usable experience with a clean and powerful API.\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```bash\n$ composer require 2amigos/yii2-selectize-widget:~1.0\n```\n\nor add\n\n```\n\"2amigos/yii2-selectize-widget\": \"~1.0\"\n```\n\nto the `require` section of your `composer.json` file.\n\n## Usage\n\nSelectize has lots of configuration options. For further information, please check the Selectize plugin [website](https://selectize.github.io/selectize.js/).\n\n### Text input widget\n\nTo use text input widget add the following to the view\n\n```php\nuse dosamigos\\selectize\\SelectizeTextInput;\n\necho SelectizeTextInput::widget([\n    'name' =\u003e 'tags',\n    'value' =\u003e 'love, this, game',\n    'clientOptions' =\u003e [\n        // ...\n    ],\n]);\n```\n\n### Dropdown list widget\n\nTo use dropdown list widget add the following to the view\n\n```php\nuse dosamigos\\selectize\\SelectizeDropDownList;\n\necho SelectizeDropDownList::widget([\n    'name' =\u003e 'tags',\n    'items' =\u003e ['love', 'this', 'game'],\n    'clientOptions' =\u003e [\n        // ...\n    ],\n]);\n```\n\n## Configuration\nSelectizeDropDownList extends from [InputWidget](http://www.yiiframework.com/doc-2.0/yii-widgets-inputwidget.html), but have additional properties that can be configured.\n\n|Property|Type|Default|Description\n|-|-|-|-|\n|`loadUrl`|string\u0026#124;array|null|Optional. This parameter will be passed to [Url::to](http://www.yiiframework.com/doc-2.0/guide-runtime-routing.html). If set, selectize plugin will be configured to send ajax requests to the defined url to retrieve options. Url must return a valid JSON response.  |\n|`queryParam`|string|'query'|The name of the request parameter to use on ajax requests|\n|`clientOptions`|array|null|Configuration of selectize plugin. This configuration is individual for each selectize instance.|\n\n## Testing\n\n```bash\n$ ./vendor/bin/phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Antonio Ramirez](https://github.com/tonydspaniard)\n- [All Contributors](https://github.com/2amigos/yii2-selectize-widget/graphs/contributors)\n\n## License\n\nThe BSD License (BSD). Please see [License File](LICENSE.md) for more information.\n\n\u003cblockquote\u003e\n    \u003ca href=\"http://www.2amigos.us\"\u003e\u003cimg src=\"http://www.gravatar.com/avatar/55363394d72945ff7ed312556ec041e0.png\"\u003e\u003c/a\u003e\u003cbr\u003e\n    \u003ci\u003eweb development has never been so fun\u003c/i\u003e\u003cbr\u003e \n    \u003ca href=\"http://www.2amigos.us\"\u003ewww.2amigos.us\u003c/a\u003e\n\u003c/blockquote\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2amigos%2Fyii2-selectize-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2amigos%2Fyii2-selectize-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2amigos%2Fyii2-selectize-widget/lists"}