PHPackages                             wenprise/wp-db-base - 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. wenprise/wp-db-base

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

wenprise/wp-db-base
===================

WordPress database custom tables register abstract

1.3(1mo ago)0508MITPHPPHP &gt;=7.1.13

Since Dec 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/iwillhappy1314/wp-db-base)[ Packagist](https://packagist.org/packages/wenprise/wp-db-base)[ RSS](/packages/wenprise-wp-db-base/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

wp-db-base
==========

[](#wp-db-base)

WordPress database custom tables register abstract

Usage
-----

[](#usage)

```
class OpenAuth extends WPDBase\Database
{

    /**
     * 定义主题路径命名空间
     */
    public function setTables()
    {

        return [

            // 用户每日成就
            "CREATE TABLE `{$this->wpdb->prefix}open_auths` (
		id bigint(20) NOT NULL AUTO_INCREMENT,
		user_id bigint(20) NOT NULL,
		provider varchar(200) DEFAULT NULL,
		open_id varchar(200) DEFAULT NULL,
		union_id varchar(200) DEFAULT NULL,
		access_token varchar(200) DEFAULT NULL,
		refresh_token varchar(200) DEFAULT NULL,
		nickname varchar(20) DEFAULT NULL,
		avatar varchar(200) DEFAULT NULL,
		province varchar(20) DEFAULT NULL,
		city varchar(20) DEFAULT NULL,
		gender varchar(20) DEFAULT NULL,
		created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
		updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
		deleted_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
		PRIMARY KEY  (id)
	    ) $this->collate;",

        ];
    }
}

new OpenAuth();
```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

31d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1455683?v=4)[Amos Lee](/maintainers/iwillhappy1314)[@iwillhappy1314](https://github.com/iwillhappy1314)

---

Top Contributors

[![iwillhappy1314](https://avatars.githubusercontent.com/u/1455683?v=4)](https://github.com/iwillhappy1314 "iwillhappy1314 (6 commits)")

### Embed Badge

![Health badge](/badges/wenprise-wp-db-base/health.svg)

```
[![Health](https://phpackages.com/badges/wenprise-wp-db-base/health.svg)](https://phpackages.com/packages/wenprise-wp-db-base)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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