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

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

bigdropinc/laravel-simple-search
================================

Laravel package for search.

12.2k1PHP

Since Jan 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bigdropinc/laravel-simple-search)[ Packagist](https://packagist.org/packages/bigdropinc/laravel-simple-search)[ RSS](/packages/bigdropinc-laravel-simple-search/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

\#Laravel Simple Search

\##Requirements

Make sure all dependencies have been installed before moving on:

- [PHP](http://php.net/manual/en/install.php) &gt;= 7.0

Pull the package via Composer:
------------------------------

[](#pull-the-package-via-composer)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require bigdropinc/laravel-simple-search "1.0.0"

```

or add

```
"bigdropinc/laravel-simple-search": "1.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
UserSearch::apply(User:class, request()->all());
```

Filters
=======

[](#filters)

All attributes that should be used described in property `fillable`

```
protected $fillable = [
   'id',
   'first_name',
   'last_name',
];
```

By default for each attribute applied condition `=`

Example:

```
protected $fillable = [
   'id',
   'name' => 'first_name', //alias:  name - search attr, first_name - db attr
   'last_name',
];
```

Equivalent

```
User::where('first_name', $firstNameValue)
   ->where('last_name', $lastNameValue)
   ->where('id', $userIdValue)
```

Сustom filters
--------------

[](#сustom-filters)

```
pulic function id($value) {
   $this->query->where('id', '>', $value);
}
```

Cast
----

[](#cast)

Used default Laravel attribute casting. By default use `string` cast

```
protected $cast = [
  'id' => 'integer',
];
```

Sort
----

[](#sort)

Default sort

```
protected $defaultSort = 'first_name';
```

Ascending order by first\_name: `sort=first_name`

Descending order by first\_name: `sort=-first_name` | hyphen (`-`) in the start

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.4% 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://avatars.githubusercontent.com/u/3830013?v=4)[poprigun](/maintainers/poprigun)[@poprigun](https://github.com/poprigun)

---

Top Contributors

[![poprigun13](https://avatars.githubusercontent.com/u/11268541?v=4)](https://github.com/poprigun13 "poprigun13 (14 commits)")[![poprigun](https://avatars.githubusercontent.com/u/3830013?v=4)](https://github.com/poprigun "poprigun (3 commits)")

### Embed Badge

![Health badge](/badges/bigdropinc-laravel-simple-search/health.svg)

```
[![Health](https://phpackages.com/badges/bigdropinc-laravel-simple-search/health.svg)](https://phpackages.com/packages/bigdropinc-laravel-simple-search)
```

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[massive/search-bundle

Massive Search Bundle

721.4M13](/packages/massive-search-bundle)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)[handcraftedinthealps/zendsearch

a general purpose text search engine written entirely in PHP 5

39921.0k35](/packages/handcraftedinthealps-zendsearch)

PHPackages © 2026

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