开发者

code igniter style mysqli database wrapper? [closed]

开发者 https://www.devze.com 2023-02-03 23:29 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消