E
E
EverOne2017-07-08 19:44:10
PHP
EverOne, 2017-07-08 19:44:10

Where can I get a lightweight Query Builder?

Problem essence:
For the simple project light Query Builder for PDO or mysqli was required. Complex queries are not expected yet, only CRUD.
Essence of the question:
Found this . I like the syntax, but I would like to hear the opinion of experts about the safety of use and the general characteristics of the code.
Still, perhaps, I would have arranged such a one .
If this one is not good, will there be other suggestions? (I'll ask in advance without Doctrine and similar "tanks").
I'm far from an expert myself, so I'll rely on your opinion and conclusions.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Skobkin, 2017-07-08
@skobkin

I ask in advance without Doctrine and similar "tanks"

I’ll tell you in secret that Doctrine is not only an ORM, but also a DBAL, for example. Independent of each other.

F
FanatPHP, 2017-07-10
@FanatPHP

https://github.com/auraphp/Aura.SqlQuery
www.notorm.com
thousands of them
For mysqli I recommend my SafeMysql
If the query does not need to be assembled dynamically, then the code is much simpler, more readable and more flexible than with any builder. Try, for example, to execute an insert ignore or on duplicate query through fluenpdo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question