PHPackages                             kindari/blade-alternator - 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. [Templating &amp; Views](/categories/templating)
4. /
5. kindari/blade-alternator

ActiveLibrary[Templating &amp; Views](/categories/templating)

kindari/blade-alternator
========================

1.0.2(12y ago)5262[1 issues](https://github.com/Kindari/blade-alternator/issues)PHPPHP &gt;=5.3.0

Since Sep 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Kindari/blade-alternator)[ Packagist](https://packagist.org/packages/kindari/blade-alternator)[ RSS](/packages/kindari-blade-alternator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Blade Alternator
================

[](#blade-alternator)

Blade Alternator is a small extension to blade that adds the common operation of changing values throughout a loop. Now thats a horrible description, so heres an example:

```
@foreach($users as $user)
	...
@endforeach

```

Which would result in alternating rows of a table, with the class switching between odd and even every time. This works with any number of arguments, for example, you might see a image gallery with three columns.

```
@foreach($images as $image)

@endforeach

```

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

[](#installation)

Add `kindari/blade-alternator` to `composer.json`.

```
"kindari/blade-alternator": "1.0.*"

```

Run `composer update` to pull down the latest version of Blade Alternator. Now open up `app/config/app.php` and add the service provider to your `providers` array, *after* the ViewServiceProvider.

```
'providers' => array(
	...
		'Illuminate\View\ViewServiceProvider',
		'Kindari\BladeAlternator\BladeAlternatorServiceProvider',
	...
)

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~0 days

Total

3

Last Release

4632d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3164fa79d8c51bb5c436aa74c6bc5174ae3e9004da7b3d7e6a786c0cf7f8fd1a?d=identicon)[kindari](/maintainers/kindari)

---

Top Contributors

[![Kindari](https://avatars.githubusercontent.com/u/488872?v=4)](https://github.com/Kindari "Kindari (5 commits)")[![wpouseele](https://avatars.githubusercontent.com/u/470182?v=4)](https://github.com/wpouseele "wpouseele (3 commits)")

### Embed Badge

![Health badge](/badges/kindari-blade-alternator/health.svg)

```
[![Health](https://phpackages.com/badges/kindari-blade-alternator/health.svg)](https://phpackages.com/packages/kindari-blade-alternator)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)

PHPackages © 2026

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