Netflex QueryBuilder library

v4.34.0 2023-08-25 10:39 UTC

This package is auto-updated.

Last update: 2023-11-23 13:07:25 UTC


Stable version Build status License: MIT Contributors Downloads

[READ ONLY] Subtree split of the Netflex Query component (see netflex/framework)

A library for building complex search queries for the Netflex API using a fluent builder-pattern.

CircleCI Stable version License: MIT Downloads


composer require netflex/query-builder

Usage example


use Netflex\Query\Builder;

$query = new Builder();
$query->relation('entry', 10000)
  ->where('id', '>=', 10100)
  ->where('author', '!=', null)
  ->orWhere(function ($query) {
    $query->where('id', '<', 10100)
      ->where('author', '=', 'John Doe');

$items = $query->limit(100)
  ->fields(['id', 'name', 'author'])
  ->orderBy('name', 'desc')

$page = $query->paginate(25);


Thank you for considering contributing to the Netflex QueryBuilder! Please read the contribution guide.

Code of Conduct

In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.


The Netflex QueryBuilder is open-sourced software licensed under the MIT license.

Copyright © 2020 Apility AS