This package provides ability to build doctrine criteria query from filter and sorting metadata. It was created to work with json-api, but easily could be used without it.
First of all you need to add dependency to composer.json:
composer require paymaxi/query
See example of usage in tests.
The MIT License (MIT). Please see License File for more information.