PHPackages                             godsboss/zebra - 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. godsboss/zebra

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

godsboss/zebra
==============

Zebra striping.

v1.0.0(5y ago)19[1 PRs](https://github.com/GodsBoss/Zebra/pulls)GPL-3.0PHPCI passing

Since Dec 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/GodsBoss/Zebra)[ Packagist](https://packagist.org/packages/godsboss/zebra)[ RSS](/packages/godsboss-zebra/feed)WikiDiscussions master Synced 1mo ago

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

Zebra striping
==============

[](#zebra-striping)

Mini-project for Zebra striping. Licensed under GPL.

Usage
-----

[](#usage)

### The common case: even &amp; odd

[](#the-common-case-even--odd)

```
$z = new Zebra();
print $z; // Will print 'odd'.
print $z; // Will print 'even'.
print $z; // Will print 'odd'.

```

### Custom values

[](#custom-values)

```
$z = new Zebra(array('one', 'two', 'three'));
print $z; // Will print 'one'.
print $z; // Will print 'two'.
print $z; // Will print 'three'.
print $z; // Will print 'one'.

```

### Several value sets at once.

[](#several-value-sets-at-once)

```
$z = new Zebra(array('odd', 'even'), array('1', '2', '3'));
print $z; // Will print 'odd 1'.
print $z; // Will print 'even 2'.
print $z; // Will print 'odd 3'.
print $z; // Will print 'even 1'.

```

### Use the same value in the same set several times.

[](#use-the-same-value-in-the-same-set-several-times)

```
$z = new Zebra(array('foo', 'bar', 'foo', 'baz'));
print $z; // Will print 'foo'.
print $z; // Will print 'bar'.
print $z; // Will print 'foo'.
print $z; // Will print 'baz'.
print $z; // Will print 'foo'.

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance53

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1976d ago

### Community

Maintainers

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

---

Top Contributors

[![GodsBoss](https://avatars.githubusercontent.com/u/206149?v=4)](https://github.com/GodsBoss "GodsBoss (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/godsboss-zebra/health.svg)

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

PHPackages © 2026

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