{"id":28635436,"url":"https://github.com/dmstr/yii2-ajax-button","last_synced_at":"2025-10-25T04:11:40.479Z","repository":{"id":33129827,"uuid":"152706207","full_name":"dmstr/yii2-ajax-button","owner":"dmstr","description":"An input widget for Yii 2.0 Framework","archived":false,"fork":false,"pushed_at":"2022-05-06T09:39:29.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-12T17:11:23.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmstr.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-10-12T06:47:19.000Z","updated_at":"2023-07-17T10:32:31.000Z","dependencies_parsed_at":"2022-08-08T12:30:19.839Z","dependency_job_id":null,"html_url":"https://github.com/dmstr/yii2-ajax-button","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dmstr/yii2-ajax-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-ajax-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-ajax-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-ajax-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-ajax-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmstr","download_url":"https://codeload.github.com/dmstr/yii2-ajax-button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-ajax-button/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280902329,"owners_count":26410765,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-06-12T17:10:14.595Z","updated_at":"2025-10-25T04:11:40.432Z","avatar_url":"https://github.com/dmstr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii 2 Ajax Button\n==================\n\nYii 2 Ajax Button based on \"JQuery\".\nWidget to manage ajax calls for Yii2 Framework\n\nUSAGE\n-----\n\nExample usage of ajax button widget\n\nBasic usage\n\n```\ndmstr\\ajaxbutton\\AjaxButton::widget([\n  'method' =\u003e 'get',\n  'url' =\u003e ['/path/to/action','name' =\u003e 'key']\n]);\n```\nAdvanced usage\n\n ```\ndmstr\\ajaxbutton\\AjaxButton::widget([\n  'method' =\u003e 'post',\n  'params' =\u003e ['status' =\u003e 'active'],\n  'url' =\u003e ['/path/to/action'],\n  'options' =\u003e ['class' =\u003e 'btn btn-primary'],\n  'errorExpression' =\u003e new JsExpression('function(resp,status,xhr) {if (xhr.status === 200) {button.html(\"Success\")}}'),\n  'successExpression' =\u003e new JsExpression('function(xhr) {if (xhr.status === 404) {button.html(\"Error\");console.error(xhr.responseJSON)}}')\n]);\n```\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download).\n\nAdd repository url to the required section of your `composer.json` file.\n\n    \"repositories\": [\n        {\n            \"type\": \"git\",\n            \"url\": \"https://github.com/dmstr/yii2-ajax-button.git\"\n        }\n    ],\n\nEither run\n\n`php composer.phar require dmstr/yii2-ajax-button` or `composer require dmstr/yii2-ajax-button`\n\nor add\n\n    \"dmstr/yii2-ajax-button\": \"*\"\n\n\nto the required section of your `composer.json` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-ajax-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmstr%2Fyii2-ajax-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-ajax-button/lists"}