PHPackages                             jcabanillas/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. jcabanillas/yii2-simple-loading

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

jcabanillas/yii2-simple-loading
===============================

Simple Loading

0174PHP

Since Aug 20Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-simple-loading)

Simple Loading widget for Yii framework 2.0 or later

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

[](#description)

**jcabanillas\\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 jcabanillas/yii2-simple-loading "*"

```

or add

```
"jcabanillas/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 jcabanillas\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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![jcabanillas](https://avatars.githubusercontent.com/u/9424899?v=4)](https://github.com/jcabanillas "jcabanillas (3 commits)")

### Embed Badge

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

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

###  Alternatives

[lullabot/amp

A set of useful classes and utilities to convert html to AMP html (See https://www.ampproject.org/)

3802.9M10](/packages/lullabot-amp)[pragmarx/coollection

Laravel Illuminate collection with objectified properties

943.4M11](/packages/pragmarx-coollection)[valorin/random

Random is a simple helper package designed to make it easy to generate a range of different cryptographically secure random values.

228188.4k2](/packages/valorin-random)[pragmarx/ia-str

Laravel Illuminate Agnostic Str

523.5M5](/packages/pragmarx-ia-str)[sailenicolas/forceutf8

PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.

53267.9k](/packages/sailenicolas-forceutf8)[prism-php/bedrock

A provider for Prism adding support for AWS Bedrock.

35116.8k1](/packages/prism-php-bedrock)

PHPackages © 2026

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