{"id":21625436,"url":"https://github.com/coderius/yii2-toggle-switcher-widget","last_synced_at":"2026-04-18T09:35:11.201Z","repository":{"id":56955740,"uuid":"147689053","full_name":"coderius/yii2-toggle-switcher-widget","owner":"coderius","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-06T15:47:45.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-24T22:34:38.639Z","etag":null,"topics":["input","switcher","widget","yii2"],"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/coderius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-06T14:47:16.000Z","updated_at":"2018-09-06T15:36:16.000Z","dependencies_parsed_at":"2022-08-21T04:10:56.664Z","dependency_job_id":null,"html_url":"https://github.com/coderius/yii2-toggle-switcher-widget","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-toggle-switcher-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-toggle-switcher-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-toggle-switcher-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-toggle-switcher-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderius","download_url":"https://codeload.github.com/coderius/yii2-toggle-switcher-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297896,"owners_count":20430346,"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":["input","switcher","widget","yii2"],"created_at":"2024-11-25T01:09:16.711Z","updated_at":"2026-04-18T09:35:06.148Z","avatar_url":"https://github.com/coderius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Toggle switcher widget for Yii2\n===============================\n\n\nThis widget will help to replace the checkbox in the form with a nice switch.\n\n![alt text](https://github.com/coderius/github-images/blob/master/ezgif.com-optimize.gif \"Toggle switcher widget example\")\n![alt text](https://github.com/coderius/github-images/blob/master/Kazam_screenshot_00003.png \"Toggle switcher widget example\")\n\nInstallation\n------------\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require \"coderius/yii2-toggle-switcher-widget\" \"@dev\"\n```\nor\n\n```\ncomposer require \"coderius/yii2-toggle-switcher-widget\" \"@dev\"\n```\n\nor add\n\n```json\n\"coderius/yii2-toggle-switcher-widget\" : \"@dev\"\n```\n\nto the require section of your application's `composer.json` file.\n\nUsage\n-----\nHow to basic use widget:\n\n```php\n\u003c?php \n    echo $form-\u003efield($model, 'flagActive')-\u003ewidget(ToggleSwitchWidget::classname(), [\n        'type' =\u003e ToggleSwitchWidget::CHECKBOX\n    ]); \n?\u003e\n\n```\nOr more short notice (ToggleSwitchWidget::CHECKBOX is default type value in widget):\n\n```php\n\u003c?= $form-\u003efield($model, 'status')-\u003ewidget(ToggleSwitchWidget::classname()); ?\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderius%2Fyii2-toggle-switcher-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderius%2Fyii2-toggle-switcher-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderius%2Fyii2-toggle-switcher-widget/lists"}