PHPackages                             carbdrox/pimcore-querybuilder-bundle - 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. [API Development](/categories/api)
4. /
5. carbdrox/pimcore-querybuilder-bundle

ActivePimcore-bundle[API Development](/categories/api)

carbdrox/pimcore-querybuilder-bundle
====================================

Pimcore QueryBuilder Bundle for easy query generation.

0.10.0(2y ago)151MITPHP

Since Apr 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Carbdrox/pimcore-querybuilder-bundle)[ Packagist](https://packagist.org/packages/carbdrox/pimcore-querybuilder-bundle)[ RSS](/packages/carbdrox-pimcore-querybuilder-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Pimcore Querybuilder Bundle
===========================

[](#pimcore-querybuilder-bundle)

[![Total Downloads](https://camo.githubusercontent.com/c58ba4c2b74c18b4ec7bbdc79092b4c5790f2e649233a2892651bc5a918011e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4361726264726f782f70696d636f72652d71756572796275696c6465722d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/carbdrox/pimcore-querybuilder-bundle)[![Latest Version](https://camo.githubusercontent.com/0071ec010c7caba2ac85f1189e93cdfec07cacbe2225271f8ac33d69f88b723d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f4361726264726f782f70696d636f72652d71756572796275696c6465722d62756e646c652e7376673f7374796c653d666c6174266c6162656c3d72656c65617365)](https://github.com/Carbdrox/pimcore-querybuilder-bundle/tags)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE)

This bundle adds a Service to your [Pimcore](https://github.com/pimcore/pimcore) project, which can resolve vite assets.

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

[](#installation)

### Using composer

[](#using-composer)

```
composer require carbdrox/pimcore-querybuilder-bundle

```

Usage
-----

[](#usage)

You can either use the service directly or use the provided trait.

### Using the service directly

[](#using-the-service-directly)

```
use QueryBuilderBundle\Service\QueryService;
use Pimcore\Model\DataObject\DummyData;
$queryService = new QueryService(DummyData::class);
```

### Using the provided trait

[](#using-the-provided-trait)

if you want to use the provided trait, you must either add `\QueryBuilderBundle\Traits\HasQueryBuilder` in your DataObject definition in the Use(traits) field, or extend your DataObject class and insert `use \QueryBuilderBundle\Traits\HasQueryBuilder;` there.

### Interface

[](#interface)

#### Trait

[](#trait)

The trait adds the following static methods to your DataObject class:

MethodReturnsquery()QueryBuilderorderBy(string $field, string $order = 'asc')QueryBuilderlimit(int $limit)QueryBuilderoffset(int $offset)QueryBuildercount()intfirst()Concrete|nullall()arraywhere(string|\\Closure $field, string $operation, mixed $value, bool $escaped = true)QueryBuilder#### Service

[](#service)

The service provides the following methods:

MethodReturnswhere(string|\\Closure $field, string $operation = '=', mixed $value = '', bool $escaped = true)QueryBuilderwhereNested(\\Closure $callback)QueryBuilderorWhere(string|\\Closure $field, string $operation = '=', mixed $value = '', bool $escaped = true)QueryBuilderorWhereNested(\\Closure $callback)QueryBuilderjoin(string $tableName, string $name)QueryBuilderlimit(int $limit)QueryBuilderoffset(int $offset)QueryBuilderorderBy(string $field, string $order = 'asc')QueryBuildergroupBy(string $column)QueryBuildercount()intget()arrayfirst()Concrete|nullall()arraytoSql()stringpaginate(int $page = 1, int $perPage = 10)PaginationInterfaceContributing
------------

[](#contributing)

Thank you for considering contributing! The contribution guide can be found in the [CONTRIBUTING.md](CONTRIBUTING.md).

Code of Conduct
---------------

[](#code-of-conduct)

Please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).

License
-------

[](#license)

The Pimcore Vite bundle is licensed under the [MIT license](LICENSE.md).

TODOs
-----

[](#todos)

- Add tests
- The join method needs to be revised so that you don't have to manually join from the alphabetically smaller class to the larger one.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

Total

2

Last Release

768d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b97a7edd6ba47b84b7e4519ac14507b1466e95b7421bcc0ffdbe8d0b76d5b78?d=identicon)[carbdrox](/maintainers/carbdrox)

---

Top Contributors

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

---

Tags

querybuilderquerybuilderpimcore

### Embed Badge

![Health badge](/badges/carbdrox-pimcore-querybuilder-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/carbdrox-pimcore-querybuilder-bundle/health.svg)](https://phpackages.com/packages/carbdrox-pimcore-querybuilder-bundle)
```

###  Alternatives

[gmostafa/php-graphql-client

GraphQL client and query builder.

3217.6M25](/packages/gmostafa-php-graphql-client)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[gmostafa/php-graphql-oqm

GraphQL Object-to-Query Mapper (QOM) which generates objects from API schema

44898.8k2](/packages/gmostafa-php-graphql-oqm)[coincheck/coincheck

Bindings of coincheck API

202.2k](/packages/coincheck-coincheck)

PHPackages © 2026

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