PHPackages                             aplia/query - 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. aplia/query

ActiveLibrary[API Development](/categories/api)

aplia/query
===========

Simplified API for doing content queries in eZ publish legacy

v1.7.1(6y ago)0561MITPHPPHP &gt;=5.3

Since Apr 13Pushed 6y ago4 watchersCompare

[ Source](https://github.com/Aplia/ezp-query)[ Packagist](https://packagist.org/packages/aplia/query)[ Docs](https://github.com/Aplia/ezp-query)[ RSS](/packages/aplia-query/feed)WikiDiscussions master Synced 1w ago

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

Aplia Content Query
===================

[](#aplia-content-query)

Simplified API for doing content queries in eZ publish legacy.

[![Latest Stable Version](https://camo.githubusercontent.com/8f4ac8e9442a5bb064dfbf47a04142368c52db87f9e923dc0de3d3619ca3047d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706c69612f71756572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aplia/query)[![Minimum PHP Version](https://camo.githubusercontent.com/b3f29eb7882d2bf523390e9982827e9d2d3a4f74266ca923b512e5d02b9e4011/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

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

[](#installation)

Install with Composer:

```
composer require aplia/query

```

Overview
--------

[](#overview)

It is divided in three main areas.

- pagination
- sorting
- filtering

All classes support the eZ template attribute system and can be passed directly to templates.

QuerySet
--------

[](#queryset)

This class combines the functionality of all the other system into one easy to use interface. Once instantiated there are several methods which can be used to filter the set and return a new queryset instance.

### Iterator usage

[](#iterator-usage)

The query-set acts as an iterator and can be passed to foreach statements directly.

```
