PHPackages                             kevinoo/graphql-laravel-filters - 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. [Framework](/categories/framework)
4. /
5. kevinoo/graphql-laravel-filters

ActiveLibrary[Framework](/categories/framework)

kevinoo/graphql-laravel-filters
===============================

This library extends the functionalities of rebing/graphql-laravel, providing a comprehensive solution for managing pagination and applying advanced filters to GraphQL queries in Laravel applications.

1.0.0(2y ago)112MITPHPPHP ^8.1|^8.2|^8.3

Since Apr 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kevinoo/graphql-laravel-filters)[ Packagist](https://packagist.org/packages/kevinoo/graphql-laravel-filters)[ Fund](https://www.paypal.com/paypalme/kevinlucich)[ RSS](/packages/kevinoo-graphql-laravel-filters/feed)WikiDiscussions main Synced 1mo ago

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

kevinoo/graphql-laravel-filters
===============================

[](#kevinoographql-laravel-filters)

This library extends the functionalities of "rebing/graphql-laravel," providing a comprehensive solution for managing pagination and applying advanced filters to GraphQL queries in Laravel applications.

Installation
------------

[](#installation)

Use Composer to install the library:

```
composer require kevinoo/graphql-laravel-filters
```

Usage
-----

[](#usage)

To utilize pagination in GraphQL queries, simply extend the AbstractPaginateQuery class provided by this library and use it in query resolvers.

```
use kevinoo\GraphQL\Queries;

class MyCustomModelQuery extends AbstractPaginateQuery
{
//    public const GENERIC_FILTERS = true;
//    public const TRASHED_FILTER = true;
//    public const MAX_LIMIT_RESULTS = 1000;

    protected $attributes = [
        'name' => 'Name of Query',
    ];

    public function getGraphQLType(): string
    {
        return 'Your GraphQL Type';
    }

    public function args(): array
    {
        return parent::args() + [
            'filters' => [
                'type' => GraphQL::type('Your GraphQL FilterInput'),
            ],
        ];
    }

    protected function resolveModelBuilder( array $args ): Builder
    {
        $builder = YourModel::query();

        $order_by = ($args['orders'] ?? []) ?: ['domain'=>'ASC'];
        foreach( $order_by as $column => $direction ){
            $builder->orderBy($column,$direction);
        }

        return $builder;
    }

    protected function getGenericFiltersKeys(): array
    {
        return [
            'your_input_key_1' => 'model_attribute_1', // Input value can be string, int, boolean or array
            'your_input_key_2' => new AdvancedSearch('model_attribute_to_apply_advanced_search'),
            'your_input_key_3_array' => 'model_attribute_2',
        ];
    }

    protected function getPipelineFiltersSteps(): array
    {
        return parent::getPipelineFiltersSteps() + [
            // Add your other custom filters class
        ];
    }
}
```

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

[](#contributing)

You are welcome to contribute to the project!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

770d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c30954c7006ac7e0bd163ba068628dd590cae9f8600f24c3696bcb562242196?d=identicon)[kevinoo](/maintainers/kevinoo)

---

Top Contributors

[![kevinoo](https://avatars.githubusercontent.com/u/2440395?v=4)](https://github.com/kevinoo "kevinoo (11 commits)")

---

Tags

frameworklaravelgraphqlreact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kevinoo-graphql-laravel-filters/health.svg)

```
[![Health](https://phpackages.com/badges/kevinoo-graphql-laravel-filters/health.svg)](https://phpackages.com/packages/kevinoo-graphql-laravel-filters)
```

###  Alternatives

[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[avored/framework

This is my package framework

7816.5k6](/packages/avored-framework)

PHPackages © 2026

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