PHPackages                             c006/yii2-submit-spinner - 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. c006/yii2-submit-spinner

ActiveYii2-extension

c006/yii2-submit-spinner
========================

Adds a div overlay with a spinning loader on submit

v2.0(8y ago)69.9k5MITPHP

Since Sep 15Pushed 8y ago2 watchersCompare

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

READMEChangelog (4)DependenciesVersions (8)Used By (0)

Yii2 Submit Spinner
===================

[](#yii2-submit-spinner)

**Current version 1.1.0**

- New add-on, **form\_validate**

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

`php composer.phar require --prefer-source "c006/yii2-submit-spinner" "dev-master"`

or add

`"c006/yii2-submit-spinner": "dev-master"`

to the require section of your `composer.json` file.

Required
--------

[](#required)

- ***jQuery***
- **yii \\ widgets \\ ActiveForm**

Options
-------

[](#options)

**class\_id =&gt;** {string}
`The ID of the container. default: "SubmitSpinner"`

**form\_id =&gt;** {string}
`The ID of the form`

**bg\_color =&gt;** {string}
`Color of the overlay`

**bg\_opacity =&gt;** {float}
`Opacity of the overlay`

**spin\_speed =&gt;** {int}
`How many seconds a for a complete 360 rotation`

**radius =&gt;** {int}
`Pixel radius/width of the spinner`

**bg\_spinner\_opacity =&gt;** {float}
` Opacity of  main spinner`

**bg\_spinner\_color =&gt;** {string}
`Color of  main spinner`

**sections =&gt;** {int}
`How many dots or circles`

**section\_size =&gt;** {int}
`Dot/circle size in px`

**section\_color =&gt;** {string}
`Color of dots/circles`

**section\_offset =&gt;** {int}
`How far from the center in px`

**section\_opacity\_base =&gt;** {float}
`Minimum opacity e.g. 0.25`

**proportionate\_increase =&gt;** {boolean}
`Will increase/decrease dots proportionally to the main spinner`

**form\_validate =&gt;** {boolean}
`Will trigger on successful ActiveForm validation`

Demo
----

[](#demo)

Demo:

Usage
-----

[](#usage)

Added javascript functions

- show\_submit\_spinner()
- hide\_submit\_spinner()

Once the extension is installed, simply use it in your code by :

**Defaults option:**

>

```

```

**All options:***(using defaults)*

>

```

```

**All options:***(5 large dots only, no background spinner)*

>

```

```

Comments / Suggestions
----------------------

[](#comments--suggestions)

Please provide any helpful feedback or requests.

Thanks.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~147 days

Recently: every ~162 days

Total

6

Last Release

3156d ago

Major Versions

v1.3 → v2.02017-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff517e38ea52ce9dd5513ae752ff0af57e315d8b8046edccb987e6a277e3a5e0?d=identicon)[c006](/maintainers/c006)

---

Top Contributors

[![c006](https://avatars.githubusercontent.com/u/7686064?v=4)](https://github.com/c006 "c006 (40 commits)")[![iurijacob](https://avatars.githubusercontent.com/u/780441?v=4)](https://github.com/iurijacob "iurijacob (1 commits)")

---

Tags

yii2extensionformwidgets

### Embed Badge

![Health badge](/badges/c006-yii2-submit-spinner/health.svg)

```
[![Health](https://phpackages.com/badges/c006-yii2-submit-spinner/health.svg)](https://phpackages.com/packages/c006-yii2-submit-spinner)
```

###  Alternatives

[kartik-v/yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

3279.7M191](/packages/kartik-v-yii2-widget-select2)[kartik-v/yii2-detail-view

Enhanced Yii 2 Detail View widget with special Bootstrap styles, ability to edit data, and more.

701.1M41](/packages/kartik-v-yii2-detail-view)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)[thiagotalma/yii2-jstree

Widget for Yii Framework 2.0 to use JsTree

3261.5k2](/packages/thiagotalma-yii2-jstree)

PHPackages © 2026

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