PHPackages                             edwinhaq/yii2-simple-loading - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. edwinhaq/yii2-simple-loading

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

edwinhaq/yii2-simple-loading
============================

Simple Loading

1.0.1(8y ago)332.7k↓52.7%41MITPHP

Since May 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/edwinhaq/yii2-simple-loading)[ Packagist](https://packagist.org/packages/edwinhaq/yii2-simple-loading)[ RSS](/packages/edwinhaq-yii2-simple-loading/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

yii2-simple-loading
===================

[](#yii2-simple-loading)

Simple Loading widget for Yii framework 2.0 or later

Description
-----------

[](#description)

**edwinhaq\\simpleloading\\SimpleLoading** widget is a simple way to show a loading screen in your views.

Requirements
------------

[](#requirements)

- Yii Version 2.0.0 or later

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist edwinhaq/yii2-simple-loading "*"

```

or add

```
"edwinhaq/yii2-simple-loading": "*"

```

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

Usage
-----

[](#usage)

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

```
	// ...
	use edwinhaq\simpleloading\SimpleLoading;
	// ...
	SimpleLoading::widget();
	// ...
```

In javascript call start and stop to control the loading widget

```
	/*
	 * start(image type)
	 * Allows to start the loading image and select the image to show
	 * options: [box, clock, default, gears, hourglass, magnify, reload, ring-alt, ring, ripple, rolling]
	 */
	SimpleLoading.start('gears'); 	// Load gears.gif
	SimpleLoading.start('default'); // Load default.gif
	SimpleLoading.start(); 			// Load default.gif

	/*
	 *
	 * Allows to stop the loading image
	 */
	SimpleLoading.stop();

	// Example:

	$.ajax(
		{
			'type':'POST',
			'dataType':'json',
			'url':'index.php?r=controller/action',
			'beforeSend':function(json)
			{
				SimpleLoading.start('gears');
			},
			'success':function(json){/* ... */},
			'error':function(json,status,errorThrown ){/* ... */},
			'complete':function(json)
			{
				SimpleLoading.stop();
			},
			'cache':false,
			'data':jQuery(this).parents("form").serialize()
		}
	);
```

History
-------

[](#history)

- Version 1.0.0 (2017-05-30)
    - Tested on Yii 2.0.6
- Version 1.0.1 (2017-10-30)
    - Tested on Yii 2.0.12

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~153 days

Total

2

Last Release

3169d ago

### Community

Maintainers

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

---

Top Contributors

[![vforvicious](https://avatars.githubusercontent.com/u/7605029?v=4)](https://github.com/vforvicious "vforvicious (7 commits)")

---

Tags

yii2extensionloading

### Embed Badge

![Health badge](/badges/edwinhaq-yii2-simple-loading/health.svg)

```
[![Health](https://phpackages.com/badges/edwinhaq-yii2-simple-loading/health.svg)](https://phpackages.com/packages/edwinhaq-yii2-simple-loading)
```

###  Alternatives

[kartik-v/yii2-widget-spinner

A widget to render animated CSS3 loading spinners with VML fallback for IE (sub repo split from yii2-widgets)

294.1M3](/packages/kartik-v-yii2-widget-spinner)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1455.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

2111.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1359.3k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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