PHPackages                             jsadways/scopefilter - 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. jsadways/scopefilter

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

jsadways/scopefilter
====================

1.0.12(2mo ago)1521↓87.5%2PHP

Since Dec 27Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/JsAdways/scopeFilter)[ Packagist](https://packagist.org/packages/jsadways/scopefilter)[ RSS](/packages/jsadways-scopefilter/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (30)Used By (2)

Install
-------

[](#install)

composer require jsadways/scopefilter

Use Keys
--------

[](#use-keys)

- keyword
- or
- and
- OrRelation\_or
- AndRelation\_or
- OrRelation\_and
- AndRelation\_and
- column : columnName\_operator =&gt; value

Edit Model
----------

[](#edit-model)

use Jsadways\\ScopeFilter\\ScopeFilterTrait;

```
class User extends Model
{

    ...
    use ScopeFilterTrait;
    ...

}

```

Example
-------

[](#example)

```
class UserController extends Controller
{

    $filter = [
        'keyword' => 'johnny',
        'status_eq' => 1,
        'or' => [
            'tel_k' => '0922',
            'titke_k => 'super'
        ],
        'andRelation_or' => [
            'education' => [
                'school_name_k' => 'National'
            ]
        ]
    ];
    $user_list = User::filter($filter)->get();
}

```

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community11

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 ~29 days

Recently: every ~20 days

Total

29

Last Release

89d ago

Major Versions

0.2.5 → 1.0.02024-12-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a2da5558a0ae5dd3db858692625743a90f0ddfeb11af514ea66da48d7dfd0e8?d=identicon)[JsAdways](/maintainers/JsAdways)

---

Top Contributors

[![alvin-js](https://avatars.githubusercontent.com/u/59727853?v=4)](https://github.com/alvin-js "alvin-js (37 commits)")

### Embed Badge

![Health badge](/badges/jsadways-scopefilter/health.svg)

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

###  Alternatives

[lipis/flag-icons

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.2k37.6k9](/packages/lipis-flag-icons)[tritum/form-element-linked-checkbox

Adds a new form element which allows the editor to create a checkbox with a linked label text. This is an extension for TYPO3 CMS.

28726.3k](/packages/tritum-form-element-linked-checkbox)[silasjoisten/sonata-multiupload-bundle

A Bundle which allows you to enable Multiupload in Sonata

30102.1k](/packages/silasjoisten-sonata-multiupload-bundle)[gabrieliuga/laravel-nova-sidebar-links

Allow definition of custom links on Laravel Nova sidebar.

12198.0k](/packages/gabrieliuga-laravel-nova-sidebar-links)

PHPackages © 2026

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