{"id":21625433,"url":"https://github.com/coderius/yii2-jqcloud2-widget","last_synced_at":"2025-04-11T12:35:02.503Z","repository":{"id":56955637,"uuid":"139272929","full_name":"coderius/yii2-jqcloud2-widget","owner":"coderius","description":"jQCloud widget for Yii2","archived":false,"fork":false,"pushed_at":"2021-08-28T16:55:48.000Z","size":392,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T08:51:20.111Z","etag":null,"topics":["coderius","jqcloud","jquery","widget","yii2"],"latest_commit_sha":null,"homepage":"","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-06-30T19:01:12.000Z","updated_at":"2023-05-19T13:40:08.000Z","dependencies_parsed_at":"2022-08-21T08:50:33.200Z","dependency_job_id":null,"html_url":"https://github.com/coderius/yii2-jqcloud2-widget","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/coderius%2Fyii2-jqcloud2-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-jqcloud2-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-jqcloud2-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-jqcloud2-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderius","download_url":"https://codeload.github.com/coderius/yii2-jqcloud2-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248402311,"owners_count":21097328,"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":["coderius","jqcloud","jquery","widget","yii2"],"created_at":"2024-11-25T01:09:15.486Z","updated_at":"2025-04-11T12:35:02.481Z","avatar_url":"https://github.com/coderius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"jQCloud widget for Yii2\n=========================\nThe jQCloud widget is a customized jQCloud script based on [jQCloud](http://mistic100.github.io/jQCloud/index.html#words-options). and \nThis widget used to word clouds and tag clouds that are actually shaped like a cloud. \n\njQCloud screenshot:\n-------------------\n![alt text](https://raw.githubusercontent.com/coderius/github-images/master/pic2.png \"jQCloud 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-jqcloud2-widget \"@dev\"\n```\n\nor add\n\n```json\n\"coderius/yii2-jqcloud2-widget\" : \"@dev\"\n```\n\nto the require section of your application's `composer.json` file.\n\n\n\n\nBasic usage.\n-----------\nIn view:\n\n```php\nuse coderius\\jqcloud2;\n\n\u003c?= \\coderius\\jqcloud2\\jQCloud::widget([\n    'tagOptions' =\u003e [\n        'style' =\u003e 'width:100%; height: 350px; border: 1px solid #ccc;',\n    ],\n    \n    'wordsOptions' =\u003e [\n        ['text'=\u003e\"Lorem\",'weight' =\u003e 13, 'link' =\u003e\"#\"],\n        ['text'=\u003e\"Ipsum\",'weight' =\u003e 10.5, 'html' =\u003e ['title' =\u003e \"My Title\", \"class\" =\u003e \"custom-class\"], 'link' =\u003e ['href' =\u003e \"http://jquery.com/\", 'target' =\u003e \"_blank\"]],\n        [\n            'text'=\u003e\"Dolor\",\n            'weight' =\u003e 9.4, \n            'handlers' =\u003e [\n                'click' =\u003e new \\yii\\web\\JsExpression(\"\n                    function() {\n                        alert('You clicked the word !');\n                    }\n                \"),\n            ]\n        ],\n        ['text'=\u003e\"Sit\",'weight' =\u003e 8],\n        ['text'=\u003e\"Amet\",'weight' =\u003e 6.2],\n        ['text'=\u003e\"Consectetur\",'weight' =\u003e 5],\n        ['text'=\u003e\"Adipiscing\",'weight' =\u003e 5],\n        ['text'=\u003e\"Elit\",'weight' =\u003e 5],\n        ['text'=\u003e\"Nam et\", 'weight' =\u003e 5]\n            \n    ],\n   \n]); ?\u003e\n```\n\nAdvanced usage.\n--------------\nIn view:\n\n```php\nuse coderius\\jqcloud2;\n\n\u003c?= \\coderius\\jqcloud2\\jQCloud::widget([\n    'tagOptions' =\u003e [\n        'style' =\u003e 'width:100%; height: 350px; border: 1px solid #ccc;',\n//        'id' =\u003e 'myid',\n        ],\n    \n    'wordsOptions' =\u003e [\n        ['text'=\u003e\"Lorem\",'weight' =\u003e 13, 'link' =\u003e\"#\"],\n        ['text'=\u003e\"Ipsum\",'weight' =\u003e 10.5, 'html' =\u003e ['title' =\u003e \"My Title\", \"class\" =\u003e \"custom-class\"], 'link' =\u003e ['href' =\u003e \"http://jquery.com/\", 'target' =\u003e \"_blank\"]],\n        [\n            'text'=\u003e\"Dolor\",\n            'weight' =\u003e 9.4, \n            'handlers' =\u003e [\n                'click' =\u003e new \\yii\\web\\JsExpression(\"\n                    function() {\n                        alert('You clicked the word !');\n                    }\n                \"),\n            ]\n        ],\n        ['text'=\u003e\"Sit\",'weight' =\u003e 8],\n        ['text'=\u003e\"Amet\",'weight' =\u003e 6.2],\n        ['text'=\u003e\"Consectetur\",'weight' =\u003e 5],\n        ['text'=\u003e\"Adipiscing\",'weight' =\u003e 5],\n        ['text'=\u003e\"Elit\",'weight' =\u003e 5],\n        ['text'=\u003e\"Nam et\", 'weight' =\u003e 5]\n            \n    ],\n    'cloudOptions' =\u003e [\n        'delay' =\u003e 50,\n        'autoResize' =\u003e true,\n//        'colors' =\u003e [\"#800026\", \"#bd0026\", \"#e31a1c\", \"#fc4e2a\", \"#fd8d3c\", \"#feb24c\", \"#fed976\", \"#ffeda0\", \"#ffffcc\"],\n        'fontSize' =\u003e [\n            'from' =\u003e 0.1,\n            'to' =\u003e 0.02\n        ]\n    ],\n    'methods' =\u003e    function($containerId, $words){\n                        return new \\yii\\web\\JsExpression(\"\n                            var arr = arr || $words;\n                            $('#update-demo').on('click', function(e) {\n                                e.preventDefault();\n                                arr.splice(0, 1);\n                                $('#{$containerId}').jQCloud('update', arr);\n                            });\n                            \n//                            $('#{$containerId}').jQCloud('destroy');\n\n                        \");\n                    } \n   \n    \n]); ?\u003e\n```\nHelp us to improve this extention.\n----------------------------------\nPlease click on the link below to [set star](https://github.com/coderius/yii2-jqcloud2-widget/stargazers) if You decide that this extention is useful for you. \n\nMore info about options look in: \n[site about jQuery plugin](http://mistic100.github.io/jQCloud/index.html#words-options)\n\n\nReference to plugin [github](https://github.com/mistic100/jQCloud) repository that is used in this widget.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderius%2Fyii2-jqcloud2-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderius%2Fyii2-jqcloud2-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderius%2Fyii2-jqcloud2-widget/lists"}