{"id":14971317,"url":"https://github.com/muhiddingithub/yii2-autocomplete","last_synced_at":"2026-02-09T14:35:23.731Z","repository":{"id":57021813,"uuid":"108235736","full_name":"muhiddingithub/yii2-autocomplete","owner":"muhiddingithub","description":"yii2-autocomplete jquery ui","archived":false,"fork":false,"pushed_at":"2017-10-26T06:42:29.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T11:39:18.057Z","etag":null,"topics":["autocomplete","jquery-autcomplete","yii2","yii2-autocomplete","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/muhiddingithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-10-25T07:33:08.000Z","updated_at":"2023-12-01T07:56:11.000Z","dependencies_parsed_at":"2022-08-23T12:20:26.476Z","dependency_job_id":null,"html_url":"https://github.com/muhiddingithub/yii2-autocomplete","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/muhiddingithub/yii2-autocomplete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiddingithub%2Fyii2-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiddingithub%2Fyii2-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiddingithub%2Fyii2-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiddingithub%2Fyii2-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhiddingithub","download_url":"https://codeload.github.com/muhiddingithub/yii2-autocomplete/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiddingithub%2Fyii2-autocomplete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29269006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["autocomplete","jquery-autcomplete","yii2","yii2-autocomplete","yii2-extension"],"created_at":"2024-09-24T13:45:00.995Z","updated_at":"2026-02-09T14:35:23.712Z","avatar_url":"https://github.com/muhiddingithub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-autocomplete\nyii2-autocomplete jquery ui\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require muhiddingithub/yii2-autocomplete \"dev-master\"\n```\n\nor add\n\n```\n\"muhiddingithub/yii2-autocomplete\": \"dev-master\"\n```\n\nto the require section of your `composer.json` file.\n\n[Jquery source](https://jqueryui.com/autocomplete/)\n\nUsage\n-----\n\n\n```php \n    echo  \\muhiddin\\autocomplete\\AutoComplete::widget([\n                                'id' =\u003e 'search',\n                                'form'=\u003e$form, // ActiveForm widget object\n                                'model'=\u003e$model, // model\n                                'attribute'=\u003e'model_attribute', // attribute of model\n                                'value' =\u003e '',\n                                'name' =\u003e 'name',\n                                'options' =\u003e [\n                                    'class' =\u003e 'form-control form-group-margin',\n                                    'dir' =\u003e \"ltr\",\n                                    'placeholder' =\u003e \"search\",\n                                ],\n                                'pluginOptions' =\u003e [\n                                    'minChars' =\u003e 3,\n                                    'serviceUrl' =\u003e \\yii\\helpers\\Url::toRoute(['custom-controlller/customer-action']),\n                                    'width' =\u003e '40%',\n                                    'onSelect' =\u003e 'function(suggestion){\n                                        // call onselect found element function\n                                    \n                                    }'\n                                ]\n                            ])\n```\n  \nin custom-controlller/customer-action\n-----\n```\n$query = Yii::$app-\u003erequest-\u003eget('query');\n        if (!empty($query)) {\n            $find = MyModel::find()-\u003eandFilterWhere(['like','column_name',$query]);\n            $allModels = $find-\u003ecolumn();\n            echo json_encode([\n                'suggestions' =\u003e $allModels\n            ]);\n        } else {\n            echo json_encode(['status' =\u003e 'failure']);\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhiddingithub%2Fyii2-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhiddingithub%2Fyii2-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhiddingithub%2Fyii2-autocomplete/lists"}