PHPackages                             mkamel/searchable - 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. [Search &amp; Filtering](/categories/search)
4. /
5. mkamel/searchable

ActiveLibrary[Search &amp; Filtering](/categories/search)

mkamel/searchable
=================

v0.4.0(3y ago)213.1k↑118.8%1MITPHPCI failing

Since Feb 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mohamedmahmoudkamel/Searchable)[ Packagist](https://packagist.org/packages/mkamel/searchable)[ RSS](/packages/mkamel-searchable/feed)WikiDiscussions master Synced today

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

Searchable
==========

[](#searchable)

1- Add this line to your `app.php` file in `providers` array:

```
MKamel\Searchable\SearchableServiceProvider::class,
```

2- Use `Searchable` Trait in your Model.

3- That will make `Search` function available for you model

```
User::search([
  'name' => 'alex',
  'older_than' => 20
]);
```

4- Create your Filters:

```
class ByOlderThanFilter
{
  public function apply($query, $key, $value)
  {
    return $query
      ->where('age', '>=', $value)
  }
}
```

5- You can update the filters directory by changing `filters_namespace` in config file.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

1310d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7912e520da0fcf513cb900f5e5589f72f93abd378dfd0174ff58802fa0f7f7dd?d=identicon)[mohamedmahmoudkamel](/maintainers/mohamedmahmoudkamel)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mkamel-searchable/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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