I need a database library from codeigniter or similar |
Codeigniter has a robust library for interacting with databases that is built directly into the framework. As I understand it, this database library is included automatically in Codeigniter starting from version 3. I am looking for a similar solution that can be added to any custom project. It would need to support prefixes and have a query builder to construct SQL statements programmatically. However, many object-relational mapping (ORM) libraries tend to be quite complex. I am hoping to find a simple database abstraction layer that handles common tasks but does not add unnecessary complexity. Something akin to Codeigniter's database class would work well for my needs.
Why don't you use CI4's database classes?
It is not so easy, but not so difficult to use CI4's classes outside CI4 projects. This is an example to use CI4 Session: https://github.com/kenjis/ci4-session-in-plain-php |
Welcome Guest, Not a member yet? Register Sign In |