PHPackages                             jinfakeji168/array-search - 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. jinfakeji168/array-search

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

jinfakeji168/array-search
=========================

Array search, array paging 数组搜索，数组分页

1.0.4(2y ago)012MITPHP

Since Jun 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jinfakeji168/array-search)[ Packagist](https://packagist.org/packages/jinfakeji168/array-search)[ RSS](/packages/jinfakeji168-array-search/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

A simple Array search and array paging
=======================================

[](#a-simple--array-search-and-array-paging-)

 .

Installing
----------

[](#installing)

```
$ composer require liaosp/array-search -vvv
```

Usage
-----

[](#usage)

example：

```
$target = [
    [
        'id'=>1,
        'status'=>3
        ],
    [
        'id'=>2,
        'status'=>1
    ],
    [
        'id'=>3,
        'status'=>2
    ],
    [
        'id'=>4,
        'status'=>1
    ],
    [
        'id'=>5,
        'status'=>1
    ],
    [
        'id'=>6,
        'status'=>1
    ],

];
```

```
$obj = new ArraySearch();

$data = $obj->arrayData($target)->paginate(1);//firstPageData  ，第一页数据。

```

where：

```
$data = $obj->arrayData($target)->where(['status'=>1])->paginate(1);//firstPageData  ，第一页数据。

```

whereIn:

```
$data = $obj->arrayData($target)->whereIn(['status'=>[1,2]])->paginate(1);//firstPageData  ，第一页数据。

```

orWhere:

```
$data = $obj->arrayData($target)->orWhere(['status'=>1,'id'=>1])->paginate(1);//firstPageData  ，第一页数据。

```

notWhere:

```
$data = $obj->arrayData($target)->notWhere(['status'=>1,'id'=>1])->paginate(1);//firstPageData  ，第一页数据。

```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/liaoshengping/arraySearch/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/liaoshengping/arraySearch/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

736d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jinfakeji168-array-search/health.svg)

```
[![Health](https://phpackages.com/badges/jinfakeji168-array-search/health.svg)](https://phpackages.com/packages/jinfakeji168-array-search)
```

###  Alternatives

[bonndan/release-manager

Release Manager for semantic version releases of composer packages and projects.

2620.2k](/packages/bonndan-release-manager)

PHPackages © 2026

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