code igniter style mysqli database wrapper? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this questionI am building an application that, due to other reason's 开发者_开发百科cannot use Code Igniter,
I am wondering if there is a library out there for mysql/mysqli that provides the same functionality as Code igniters DB class.
I am mostly looking into the ability to go
$db->select('username, password')->from('users')->where('id = "123"')->limit(1)->get();
The ability to build your query as you go using a set of functions.
method chaining is also useful.
sounds like http://www.notorm.com/ is what you want.
Look for Zend Framework, http://framework.zend.com - you dont need to use whole package just Zend_Db peace - very usefull if you want to skip all mess related to reinventing the wheel (create ubject to connect to db and have SQL wrapper)
You can try PHP Classes library. It will help you to get data from database as core php.
精彩评论