PHPackages                             jstewmc/in-arrays - 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. jstewmc/in-arrays

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

jstewmc/in-arrays
=================

Checks if a value exists in an array of arrays

v0.1.0(9y ago)017PHPPHP ^7.0

Since Aug 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jstewmc/in-arrays)[ Packagist](https://packagist.org/packages/jstewmc/in-arrays)[ RSS](/packages/jstewmc-in-arrays/feed)WikiDiscussions master Synced 4w ago

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

in-arrays
=========

[](#in-arrays)

Checks if a value exists in an array of arrays.

```
use Jstewmc\InArrays\In;

$arrays = [
    'foo' => ['foo', 'bar', 'baz'],
    'bar' => ['foo', 'bar', 'baz']
];

$service = new In($arrays);

$service('foo', 'foo');  // returns true
$service('bar', 'foo');  // returns true
$service('bar', 'qux');  // returns false (value "qux" does not exist)
$service('baz', 'foo');  // returns false (array "baz" does not exist)
```

Case-sensitivity
----------------

[](#case-sensitivity)

This library, like PHP, uses *case-sensitive* keys and values.

For example:

```
use Jstewmc\InArrays\In;

// note the lower-case key and value
$service = new In(['foo' => ['foo']);

$service('foo', 'foo');  // returns true
$service('FOO', 'foo');  // returns false (keys are case-sensitive)
$service('bar', 'FOO');  // returns false (values are case-sensitive)
```

That's about it!

Author
------

[](#author)

[Jack Clayton](clayjs0@gmail.com)

License
-------

[](#license)

[MIT](https://github.com/jstewmc/in-arrays/blob/master/LICENSE)

Version
-------

[](#version)

### 0.1.0, August 27, 2016

[](#010-august-27-2016)

- Initial release

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50fecae0a7fd2119681bc133e496e7166b01a59f850a3c909e100bd427c6b28b?d=identicon)[Jstewmc](/maintainers/Jstewmc)

---

Top Contributors

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

---

Tags

phparrayinjstewmc

### Embed Badge

![Health badge](/badges/jstewmc-in-arrays/health.svg)

```
[![Health](https://phpackages.com/badges/jstewmc-in-arrays/health.svg)](https://phpackages.com/packages/jstewmc-in-arrays)
```

###  Alternatives

[zakirullin/mess

Convenient array-related routine &amp; better type casting

21330.0k2](/packages/zakirullin-mess)

PHPackages © 2026

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