PHPackages                             webimage/app-db - 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. webimage/app-db

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

webimage/app-db
===============

v1.0.1(6mo ago)032PHP

Since Jun 3Pushed 6mo agoCompare

[ Source](https://github.com/WebImage/App-DB)[ Packagist](https://packagist.org/packages/webimage/app-db)[ RSS](/packages/webimage-app-db/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (14)Used By (0)

Setup
=====

[](#setup)

In configuration, setup the following structure

Connections
-----------

[](#connections)

Set up named connections. Generally, use "default" as the connection name to allow any ConnectionManager::getConnection() call to work.

Settings are compatible with Doctrine's ConnectionManager, allowing you to use the same configuration for both.

```
[
    'database' => [
        'connections' => [
            'default|connectionName' => [ // Doctrine connection manager compatible
                'dbname'   => 'your_database_name',
                'user'     => 'your_username',
                'password' => 'your_password',
                'host'     => '127.0.0.1', // Optional
                'port'     => 3306, // Optional
                'driver'   => 'pdo_mysql'
            ]
        ]
    ]
]
```

Supported drivers include:

DriverDescriptionRequired PHP Extension`pdo_mysql`MySQL / MariaDB using PDO`pdo_mysql``mysqli`MySQL / MariaDB using MySQLi driver`mysqli``pdo_pgsql`PostgreSQL using PDO`pdo_pgsql``pdo_sqlite`SQLite using PDO`pdo_sqlite``pdo_sqlsrv`Microsoft SQL Server using PDO`pdo_sqlsrv``sqlsrv`Microsoft SQL Server using native driver`sqlsrv``oci8`Oracle using OCI8`oci8``pdo_oci`Oracle using PDO`pdo_oci``ibm_db2`IBM DB2`ibm_db2``pdo_ibm`IBM DB2 using PDO`pdo_ibm``pdo_firebird`Firebird using PDO`pdo_firebird``pdo_dblib`SQL Server/Sybase via FreeTDS`pdo_dblib`Global Table Prefix
-------------------

[](#global-table-prefix)

Defining a global table prefix allows you to set a prefix that will be applied to all tables unless overridden by specific table settings.

```
[
    'database' => [
        'globalTablePrefix' => 'prefix_'
    ]
]
```

Table Settings
--------------

[](#table-settings)

Simple table aliases can be set up as follows:

```
[
    'database' => [
        'tables' => [
            'tableAlias' => 'tableName'
        ]
    ]
]
```

Or more fine grain control can be achieved by specifying the table name, read and write connections, and whether to use the global prefix:

```
[
    'database' => [
        'tables' => [
            'tableAlias' => [
                'table' => 'tableName',
                'readConnection' => 'readConnectionName',
                'writeConnection' => 'writeConnectionName',
                'useGlobalPrefix' => true|false
            ]
        ]
    ]
]
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~134 days

Recently: every ~111 days

Total

13

Last Release

203d ago

Major Versions

0.0.11 → 1.0.02025-06-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/751d4f62a8a7b411acdf695ef5ea9e54c4d700381a0eccb8e88f5e6921848ef0?d=identicon)[WebImage](/maintainers/WebImage)

---

Top Contributors

[![WebImage](https://avatars.githubusercontent.com/u/3458276?v=4)](https://github.com/WebImage "WebImage (17 commits)")

### Embed Badge

![Health badge](/badges/webimage-app-db/health.svg)

```
[![Health](https://phpackages.com/badges/webimage-app-db/health.svg)](https://phpackages.com/packages/webimage-app-db)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

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