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.2(5y ago)0485MITPHPPHP &gt;=7.1.13

Since Dec 27Pushed 4y 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 4d ago

READMEChangelog (3)DependenciesVersions (4)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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

2032d ago

### Community

Maintainers

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

---

Top Contributors

[![iwillhappy1314](https://avatars.githubusercontent.com/u/1455683?v=4)](https://github.com/iwillhappy1314 "iwillhappy1314 (5 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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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