PHPackages                             jonasof/array-circle-fetch - 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. jonasof/array-circle-fetch

ActiveLibrary

jonasof/array-circle-fetch
==========================

Fetch elements from array in a circle pattern

014PHP

Since Oct 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jonasof/array-circle-fetch)[ Packagist](https://packagist.org/packages/jonasof/array-circle-fetch)[ RSS](/packages/jonasof-array-circle-fetch/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Array Circle Fetch
------------------

[](#array-circle-fetch)

Fetch elements from array in a circle pattern.

Pass the following table:

12345678910111213141516171819202122232425Its like the following array:

```
$count = 1;

$array = [];
for($y = 0; $y < 5; $y++) {
  $array = [$y];
  for($x = $x < 5; $x++) {
    $array[$y][$x] = $count;
    $count++;
  }
}
```

So you specify a point by keys and choice a radius to get. Lets to get the point \["x" =&gt; 3, "y" =&gt; 2\], and a 3 elements radius.

1234567**8**910111213141516171819202122232425```
$circlefetch = new ArrayCircleFetch($array);
$result = $circlefetch->get(["x" => 3, "y"=> 2], 3);
```

Will get:

1**2****3****4**5**6****7****8****9****10**11**12****13****14**151617**18**19202122232425In a one dimension array:

\[2,3,4,6,7,8,9,10,12,13,14,18\].

TODO
----

[](#todo)

- build a small square in 2\*radious size to get more performance.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jonasof-array-circle-fetch/health.svg)

```
[![Health](https://phpackages.com/badges/jonasof-array-circle-fetch/health.svg)](https://phpackages.com/packages/jonasof-array-circle-fetch)
```

PHPackages © 2026

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