PHPackages                             sarfraznawaz2005/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. sarfraznawaz2005/loading

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sarfraznawaz2005/loading
========================

Laravel package to add loading indicator to pages while page is loading.

1.4.0(3y ago)4812.8k↓63.7%12[2 issues](https://github.com/sarfraznawaz2005/loading/issues)[1 PRs](https://github.com/sarfraznawaz2005/loading/pulls)MITPHPPHP &gt;=7.0

Since Oct 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/sarfraznawaz2005/loading)[ Packagist](https://packagist.org/packages/sarfraznawaz2005/loading)[ RSS](/packages/sarfraznawaz2005-loading/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (1)Versions (12)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bab2f85997ee63da71b31541cc95866539183c19bdc27b0367d24cb14601b4c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7361726672617a6e6177617a323030352f6c6f6164696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sarfraznawaz2005/loading)[![Total Downloads](https://camo.githubusercontent.com/29d33c8b5f0777305a40a7cdd68e224b279d5059c1b19d12aeac9dfff3188649/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361726672617a6e6177617a323030352f6c6f6164696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sarfraznawaz2005/loading)

Laravel Loading Indicator
=========================

[](#laravel-loading-indicator)

Introduction
------------

[](#introduction)

Laravel package to add loading indicator to pages while page is loading. Loading indicator is automatically removed after page has fully loaded.

Behind the scene, middleware is used to inject needed HTML/CSS/JS before `` tag to show and hide the loading indicator accordingly.

Loading indicators are via to awesome [CSSPIN](https://github.com/webkul/csspin) project.

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

[](#requirements)

- PHP &gt;= 7
- Laravel 5

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

[](#installation)

Install via composer

```
composer require sarfraznawaz2005/loading

```

For Laravel &lt; 5.5:

Add Service Provider to `config/app.php` in `providers` section

```
Sarfraznawaz2005\Loading\ServiceProvider::class,
```

---

Publish package's config file by running below command:

```
$ php artisan vendor:publish --provider="Sarfraznawaz2005\Loading\ServiceProvider"
```

It should publish `config/loading.php` config file.

Usage
-----

[](#usage)

Simply add to `\Sarfraznawaz2005\Loading\Http\Middleware\LoadingMiddleware::class` to `app/Http/Kernel.php` either in global middleware section or route section.

Add in global section if you want loading indicator on all pages automatically or add it to route middleware section if you want to add indictor to certain pages only via `middleware` method in routes.

Visit any page and you should see loading indicator at middle of the page while page is loading.

Check config file for options.

Credits
-------

[](#credits)

- [Sarfraz Ahmed](https://github.com/sarfraznawaz2005)
- [All Contributors](https://github.com/sarfraznawaz2005/loading/graphs/contributors)

License
-------

[](#license)

Please see the [license file](license.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~123 days

Recently: every ~299 days

Total

11

Last Release

1258d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f9bbcf3a6cda5f8bdf9afe10c20f5c6f563fc1a4d628a9af25c5fdec3f9c216?d=identicon)[sarfraznawaz2005](/maintainers/sarfraznawaz2005)

---

Top Contributors

[![sarfraznawaz2005](https://avatars.githubusercontent.com/u/201788?v=4)](https://github.com/sarfraznawaz2005 "sarfraznawaz2005 (10 commits)")[![sarfrazonsupport](https://avatars.githubusercontent.com/u/142378572?v=4)](https://github.com/sarfrazonsupport "sarfrazonsupport (4 commits)")

---

Tags

indicatorlaravelloaderloading-animationsloading-spinnerspinnerlaravelloaderloadingindicator

### Embed Badge

![Health badge](/badges/sarfraznawaz2005-loading/health.svg)

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

###  Alternatives

[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90157.6k](/packages/emargareten-inertia-modal)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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