mouf/magic-query (packagist): A very clever library to help you with SQL: generate prepared statements with a variable number of parameters, automatically writes joins... and much more!
Keywords: database|query|mouf