{"id":15042510,"url":"https://github.com/yidas/yii2-jquery","last_synced_at":"2025-04-10T00:32:30.721Z","repository":{"id":57086812,"uuid":"150455341","full_name":"yidas/yii2-jquery","owner":"yidas","description":"jQuery Asset Bundle extension with fixed and CDN sources for Yii2 framework","archived":false,"fork":false,"pushed_at":"2018-09-30T14:34:39.000Z","size":83,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T05:37:16.343Z","etag":null,"topics":["asset-bundle","jquery","yii2","yii2-asset","yii2-extension"],"latest_commit_sha":null,"homepage":"","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/yidas.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":"2018-09-26T16:17:03.000Z","updated_at":"2021-01-12T17:47:02.000Z","dependencies_parsed_at":"2022-08-25T00:50:44.030Z","dependency_job_id":null,"html_url":"https://github.com/yidas/yii2-jquery","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/yidas%2Fyii2-jquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yidas%2Fyii2-jquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yidas%2Fyii2-jquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yidas%2Fyii2-jquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yidas","download_url":"https://codeload.github.com/yidas/yii2-jquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248135286,"owners_count":21053649,"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":["asset-bundle","jquery","yii2","yii2-asset","yii2-extension"],"created_at":"2024-09-24T20:47:25.148Z","updated_at":"2025-04-10T00:32:30.694Z","avatar_url":"https://github.com/yidas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"60px\"\u003e\n    \u003c/a\u003e \u0026nbsp; \n    \u003ca href=\"https://jquery.com\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://upload.wikimedia.org/wikipedia/en/thumb/9/9e/JQuery_logo.svg/220px-JQuery_logo.svg.png\" height=\"50px\"\u003e\n    \u003c/a\u003e\n    \u003c!--\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n    \u003c/a\u003e \n    --\u003e\n    \u003ch1 align=\"center\"\u003ejQuery Extension for Yii 2 \u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\njQuery Asset Bundle extension with fixed and CDN sources for Yii2 framework\n\n[![Latest Stable Version](https://poser.pugx.org/yidas/yii2-jquery/v/stable?format=flat-square)](https://packagist.org/packages/yidas/yii2-jquery)\n[![Latest Unstable Version](https://poser.pugx.org/yidas/yii2-jquery/v/unstable?format=flat-square)](https://packagist.org/packages/yidas/yii2-jquery)\n[![License](https://poser.pugx.org/yidas/yii2-jquery/license?format=flat-square)](https://packagist.org/packages/yidas/yii2-jquery)\n\nThis is the [jQuery](https://jquery.com/) extension for [Yii framework 2.0](http://www.yiiframework.com/). It provides fixed and CDN [jQuery](https://github.com/jquery/jquery) distribution assets and thus makes using jQuery in Yii applications extremely easy.\n\n\nFEATURES\n--------\n\n- ***No Bower**, Composer installation only*\n\n- ***CDN \u0026 fixed** assets source provided*\n\n- ***Version Controll** refers to jQuery*\n\n\n---\n\n\nINSTALLATION\n------------\n\nThe preferred install way is through [Composer](http://getcomposer.org/download/):\n\n```\ncomposer require yidas/yii2-jquery\n```\n\nVersion options refered jQuery release:\n\n```\ncomposer require yidas/yii2-jquery ~2.0.0\ncomposer require yidas/yii2-jquery ~3.0.0\n```\n\nOr you could edit `composer.json` with adding package in require section then run `composer update`.\n\n```\n\"yidas/yii2-jquery\": \"*\"\n```\n\n---\n\nCONFIGURATION\n-------------\n\nRegister or depend Asset into your application:\n\n```php\nyidas\\yii\\jquery\\JqueryAsset\n```\n    \nFor example, to register jQuery assets in view :\n\n```php\n\\yidas\\yii\\jquery\\JqueryAsset::register($this);\n```\n    \nOr as dependency in your app asset bundle :    \n\n```php\nnamespace app\\assets;\nuse yii\\web\\AssetBundle;\nclass AppAsset extends AssetBundle\n{\n    public $basePath = '@webroot';\n    public $baseUrl = '@web';\n    public $css = [\n        'css/site.css',\n    ];\n    public $js = [\n    ];\n    public $depends = [\n        'yidas\\yii\\jquery\\JqueryAsset'\n    ];\n}\n```\n\n### Version Control\n\nThis extension includes fixed distribution assets for choosing existing version of jQuery, set the version by configuring `config` file:\n\n```php\n'components' =\u003e [\n    'assetManager' =\u003e [\n        'bundles' =\u003e [\n            'yidas\\yii\\jquery\\JqueryAsset' =\u003e [\n                'version' =\u003e '2.2.4',\n            ],\n        ],\n    ],\n],\n```\n\n\n### CDN Asset Mode\n\nYou could switch Asset to use CDN distribution by configuring `config` file:\n\n```php\n'components' =\u003e [\n    'assetManager' =\u003e [\n        'bundles' =\u003e [\n            'yidas\\yii\\jquery\\JqueryAsset' =\u003e [\n                'cdnVersion' =\u003e '2.2.4',\n                'cdn' =\u003e true,\n            ],\n        ],\n    ],\n],\n```\n\n#### Specify a CDN source\n\nYou could also specify CDN source you like:\n\n```php\n'components' =\u003e [\n    'assetManager' =\u003e [\n        'bundles' =\u003e [\n            'yidas\\yii\\jquery\\JqueryAsset' =\u003e [\n                'cdn' =\u003e true,\n                'cdnJS' =\u003e ['https://code.jquery.com/jquery-2.2.4.min.js'],\n            ],\n        ],\n    ],\n\n],\n```\n    \n    \n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyidas%2Fyii2-jquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyidas%2Fyii2-jquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyidas%2Fyii2-jquery/lists"}