PHPackages                             coercive/iterator - 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. coercive/iterator

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

coercive/iterator
=================

Coercive Utility Iterator

0.0.3(2y ago)182MITPHP &gt;=7.4

Since Dec 5Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Coercive/Iterator)[ Packagist](https://packagist.org/packages/coercive/iterator)[ Docs](http://coercive.fr)[ RSS](/packages/coercive-iterator/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Coercive Utility Iterator
=========================

[](#coercive-utility-iterator)

Item iterator

Get
---

[](#get)

```
composer require coercive/iterator

```

Example Multibyte String Iterator
---------------------------------

[](#example-multibyte-string-iterator)

```
foreach (new MbStrIterator('string') as $i => $chr) {
	echo "$i => $chr \n";
}
```

Example Array Sort
------------------

[](#example-array-sort)

```
$examples = array(
    1 => array(
        'id' => 'abcd',
    ),
    2 => array(
        'id' => 'ABCD',
    ),
    3 => array(
        'id' => 'aabcd',
    ),
    4 => array(
        'id' => 'aAbcd',
    ),
    5 => array(
        'id' => 'AAbcd',
    ),
);

# Instantiate with data
$array = new Sort($examples);

# [optional] Set case-insensitive if useful
$array->insensitive(true);

# [optional] Set targeted key level
$array->level(1);

# Sort ASCENDING
$sorted = $array->asc('id');

# Sort DESCENDING
$sorted = $array->desc('id');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Every ~833 days

Total

3

Last Release

1049d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.1

0.0.2PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20288080?v=4)[Coercive](/maintainers/Coercive)[@Coercive](https://github.com/Coercive)

---

Top Contributors

[![Coercive](https://avatars.githubusercontent.com/u/20288080?v=4)](https://github.com/Coercive "Coercive (6 commits)")

### Embed Badge

![Health badge](/badges/coercive-iterator/health.svg)

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

###  Alternatives

[jetsung/pusher

A message push extension.

168.6k](/packages/jetsung-pusher)

PHPackages © 2026

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