Doctrine Database Abstraction Layer
open sourceMITfree
Doctrine DBAL is a PHP database abstraction layer with many features for database schema introspection and management. It gives one API over drivers for MySQL, MariaDB, PostgreSQL, Oracle, Microsoft SQL Server, Db2 and SQLite: prepared statements and parameter binding, a SQL query builder, transactions, a type system that converts between database and PHP values, and a schema manager that reads and changes tables. Doctrine ORM is built on it, and it's also used on its own.
Problems it solves
- run SQL from PHP against MySQL, Postgres or SQLite without being tied to one database
- build SQL queries safely in PHP without a full ORM
- read and change my database schema from PHP code
Features
- one API over MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, Db2 and SQLite
- prepared statements and parameter binding
- SQL query builder
- schema introspection and management
- type conversion between database and PHP values
- transactions with nesting
