adodb / adodb-php
ADOdb is a PHP database abstraction layer library
Installs: 2 527 106
Dependents: 28
Suggesters: 2
Security: 4
Stars: 427
Watchers: 50
Forks: 270
Open Issues: 68
Requires
- php: ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^8.5
- dev-master
- v5.22.7
- v5.22.6
- v5.22.5
- v5.22.4
- v5.22.3
- v5.22.2
- v5.22.1
- v5.22.0
- v5.21.4
- v5.21.3
- v5.21.2
- v5.21.1
- v5.21.0
- v5.21.0-rc.1
- v5.21.0-beta.1
- v5.20.21
- v5.20.20
- v5.20.19
- v5.20.18
- v5.20.17
- v5.20.16
- v5.20.15
- v5.20.14
- v5.20.13
- v5.20.12
- v5.20.11
- v5.20.10
- v5.20.9
- v5.20.8
- v5.20.7
- v5.20.6
- v5.20.5
- v5.20.4
- v5.20.3
- v5.20.2
- v5.20.1
- v5.20.0
- v5.19
- dev-master=add-session-plugin
- dev-hotfix/5.22
- dev-master-add-logging-plugin
- dev-master-add-caching-plugin
- dev-master-add-session-plugin
- dev-master-future-cache-extensions
- dev-pdo-preload-demo
- dev-pdo-preload-plus-addins
- dev-792-active_record-is-changing-case-of-table-names
- dev-standardize-cached-field-objects-747
- dev-hotfix/5.21
- dev-field-types-array-refactor-747
- dev-extended-metaindex-attributes
- dev-data-log-enhancements
- dev-adodb6-prototype-design
- dev-standards-and-docblocks
- dev-metaobject-prototype
- dev-metacasing
This package is auto-updated.
Last update: 2024-11-04 02:05:36 UTC
README
(c) 2000-2013 John Lim (jlim@natsoft.com)
(c) 2014 Damien Regad, Mark Newnham and the
ADOdb community
The ADOdb Library is dual-licensed, released under both the BSD 3-Clause and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option, any later version. This means you can use it in proprietary products; see License for details.
Home page: https://adodb.org/
Introduction
PHP's database access functions are not standardized. This creates a need for a database class library to hide the differences between the different databases (encapsulate the differences) so we can easily switch databases.
The library currently supports MySQL, Firebird & Interbase, PostgreSQL, SQLite3, Oracle, Microsoft SQL Server, Foxpro ODBC, Access ODBC, Informix, DB2, Sybase, Sybase SQL Anywhere, generic ODBC and Microsoft's ADO.
We hope more people will contribute drivers to support other databases.
Installation
Unpack all the files into a directory accessible by your web server.
To test, try modifying some of the tutorial examples. Make sure you customize the connection settings correctly.
You can debug using:
<?php include('adodb/adodb.inc.php'); $db = adoNewConnection($driver); # eg. 'mysqli' or 'oci8' $db->debug = true; $db->connect($server, $user, $password, $database); $rs = $db->execute('select * from some_small_table'); print "<pre>"; print_r($rs->getRows()); print "</pre>";
Documentation and Examples
Refer to the ADOdb website for library documentation and examples. The documentation can also be downloaded for offline viewing.
- Main documentation: Query, update and insert records using a portable API.
- Data dictionary describes how to create database tables and indexes in a portable manner.
- Database performance monitoring allows you to perform health checks, tune and monitor your database.
- Database-backed sessions.
There is also a tutorial that contrasts ADOdb code with PHP native MySQL code.
Files
adodb.inc.php
is the library's main file. You only need to include this file.adodb-*.inc.php
are the database specific driver code.adodb-session.php
is the PHP4 session handling code.test.php
contains a list of test commands to exercise the class library.testdatabases.inc.php
contains the list of databases to apply the tests on.Benchmark.php
is a simple benchmark to test the throughput of a SELECT statement for databases described in testdatabases.inc.php. The benchmark tables are created in test.php.
Support
To discuss with the ADOdb development team and users, connect to our Gitter chatroom using your Github credentials.
Please report bugs, issues and feature requests on Github:
https://github.com/ADOdb/ADOdb/issues
You may also find legacy issues in
However, please note that they are not actively monitored and should only be used as reference.