adodb/adodb-php
Composer 安装命令:
composer require adodb/adodb-php
包简介
ADOdb is a PHP database abstraction layer library
README 文档
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.phpis the library's main file. You only need to include this file.adodb-*.inc.phpare the database specific driver code.adodb-session.phpis the PHP4 session handling code.test.phpcontains a list of test commands to exercise the class library.testdatabases.inc.phpcontains the list of databases to apply the tests on.Benchmark.phpis 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.
adodb/adodb-php 适用场景与选型建议
adodb/adodb-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.38M 次下载、GitHub Stars 达 456, 最近一次更新时间为 2013 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「php」 「abstraction」 「library」 「layer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 adodb/adodb-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 adodb/adodb-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 adodb/adodb-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Store your language lines in the database, yaml or other sources
Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
ADOdb is a PHP database abstraction layer library
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Slimmed down concise interfaces and query builder for database queries and transactions which can be layered / decorated.
统计信息
- 总下载量: 4.38M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 469
- 点击次数: 24
- 依赖项目数: 34
- 推荐数: 2
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-01-04