PHPackages                             light/yii2-ajaxform - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. light/yii2-ajaxform

ActiveLibrary[Framework](/categories/framework)

light/yii2-ajaxform
===================

yii2 activeform ActiveForm ajax

1.0.3(7y ago)214.5k51MITPHPPHP &gt;=5.4.0

Since Nov 28Pushed 7y ago3 watchersCompare

[ Source](https://github.com/lichunqiang/yii2-ajaxform)[ Packagist](https://packagist.org/packages/light/yii2-ajaxform)[ RSS](/packages/light-yii2-ajaxform/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (1)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Ajax Form
==============

[](#yii2-ajax-form)

[![Build Status](https://camo.githubusercontent.com/9f4ffc97a2d0d5530d74352c308f095700c3a191cdc6f9a47709548dd4d2c3a5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696368756e7169616e672f796969322d616a6178666f726d2e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/lichunqiang/yii2-ajaxform)[![version](https://camo.githubusercontent.com/c759a9682ea6b9122ae6894bca82dd90c496aa9a42e8f3001ccca346288831ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696768742f796969322d616a6178666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/yii2-ajaxform)[![Download](https://camo.githubusercontent.com/c87b0299aa97d875b911c7a3aeac097f7e27958749225610907036a06dcb4f70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696768742f796969322d616a6178666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/yii2-ajaxform)[![Issues](https://camo.githubusercontent.com/e7e780df27da6945c5e6c147c60b8650b8eef06a16a404d65a0505f6879d18b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c696368756e7169616e672f796969322d616a6178666f726d2e7376673f7374796c653d666c61742d737175617265)](https://github.com/lichunqiang/yii2-ajaxform/issues)

Overview
--------

[](#overview)

Using `jquery.form` to make `ActiveForm` has ability to submit via ajax but not fullpage reload.

Install
-------

[](#install)

Using composer:

```
$ composer require light/yii2-ajaxform=*

```

Usage
-----

[](#usage)

```
use light\widgets\ActiveForm;
use yii\web\JsExpression;

ActiveForm::begin([
	'ajaxSubmitOptions' => [
		'success' => new JsExpression('function(response) {console.log(response)}'),
		'complete' => new JsExpression('function() {console.log("request completed.")}')
	]
])
```

### Options

[](#options)

- Default enabled `enableAjaxSubmit` is true
- `ajaxSubmitOptions` you can find in [jquery.form](https://github.com/malsup/form)

Test
----

[](#test)

```
$ phpunit

```

LICENSE
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

[![Bitdeli Badge](https://camo.githubusercontent.com/607b7c7b3bbb3ffb2c913813fa9eab69171e33aa1adf0292e00c00f8ecf6e023/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6c696368756e7169616e672f796969322d616a6178666f726d2f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~418 days

Total

4

Last Release

2561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (19 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

ajaxyii-extensionyii2yii2-ajaxform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/light-yii2-ajaxform/health.svg)

```
[![Health](https://phpackages.com/badges/light-yii2-ajaxform/health.svg)](https://phpackages.com/packages/light-yii2-ajaxform)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
