PHPackages                             archangeldesign/archangeldb2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. archangeldesign/archangeldb2

ActiveLibrary[Database &amp; ORM](/categories/database)

archangeldesign/archangeldb2
============================

PHP database engine wrapper

1.3.2(7y ago)072BSD-3-ClausePHPPHP &gt;=5.5

Since Jan 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ArchangelDesign/ArchangelDB2)[ Packagist](https://packagist.org/packages/archangeldesign/archangeldb2)[ Docs](http://archangel-design.com)[ RSS](/packages/archangeldesign-archangeldb2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (4)Used By (0)

ArchangelDB module for PHP 5.5 application
==========================================

[](#archangeldb-module-for-php-55-application)

#### copyright (c)

[](#copyright-c-httpsarchangeldesigngithubio)

\*\* Simple but powerful PHP Database Engine \*\*

Another version of Archangel DB introduces much more than the previous one. This time not only allowing transaction and prepared statements but also compatible with Postgres, Oracle, Sqlite, SQLServer and IBM DB2. Built-in cache system and error log, easy error handling and deployment.

Designed for Zend Framework 2 (using Zend\\DB module) but can be implemented in every PHP 5.5 project.

Advantages
----------

[](#advantages)

- lightweight
- very simple to use, 2 lines of code to initialize
- flexible configuration
- ability to add common table prefix
- easy access to profiler (execution time, full query, query count...)
- no external dependencies
- runs queries stored in filesystem (useful for reports)
- cache system
- ability to run queries stored in files
- XML deployment files
- database structure history
- automatic database structure updater
- utilizing Zend\\Db : stable and efficient module
- fully compatible with ArchangelDB 1.2

So far tested on Mysql and PostgreSQL only.

### Installation via composer

[](#installation-via-composer)

Install composer (linux):

```
curl -sS https://getcomposer.org/installer | php

```

Create "composer.json" file in your project root. Within a "require" section mention ADB2 as follows

```
{
  "name": "Your project anme",
  "description": "your description",
  "homepage": "http://arcangel-design.com or whatever",
  "require": {
    "php": "^5.6 || ^7.0",
    "archangeldesign/archangeldb2" : "^1.3",
  }
}

```

run composer update/install

```
php composer.phar update

```

Include "autoload.php" from vendor directory and you're done. Please note that if you are using composer you do not need to use "autoload\_register.php" file and in further version it will be removed. It is recommended that you always use composer to manage your dependencies.

Examples of how easy it is to start using Archangel DB 2

============================================================================

```

```

============================================================================

```

```

==============================================================================

```
// Executing custom SQL
$res = $adb->executeRawQuery("select * from {users} where deleted = ? and active = ?", [0, 1]);

// table prefix will be added automatically

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~272 days

Total

3

Last Release

2859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b427fc8e86c9d98ddee6a8e4f3c7dfbd3c790e73243aa46e7e3b67481a608377?d=identicon)[ArchangelDesign](/maintainers/ArchangelDesign)

---

Top Contributors

[![ArchangelDesign](https://avatars.githubusercontent.com/u/8267447?v=4)](https://github.com/ArchangelDesign "ArchangelDesign (95 commits)")

---

Tags

phpmysqlarchangeldesign

### Embed Badge

![Health badge](/badges/archangeldesign-archangeldb2/health.svg)

```
[![Health](https://phpackages.com/badges/archangeldesign-archangeldb2/health.svg)](https://phpackages.com/packages/archangeldesign-archangeldb2)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

9.4k2.8k](/packages/leantime-leantime)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11812.0k](/packages/stefangabos-zebra-database)[eftec/pdoone

Minimaist procedural PDO wrapper library

1105.9k9](/packages/eftec-pdoone)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[matthew-p/docker-server

Universal docker server, Nginx, PHP-FPM, MySql, Redis

112.8k](/packages/matthew-p-docker-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
