PHPackages                             screenfeed/autowpdb - 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. screenfeed/autowpdb

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

screenfeed/autowpdb
===================

Create and use custom database tables in WordPress.

v0.3(5y ago)881GPL-2.0PHPPHP &gt;=7.0.0CI failing

Since Jul 28Pushed 5y agoCompare

[ Source](https://github.com/Screenfeed/autowpdb)[ Packagist](https://packagist.org/packages/screenfeed/autowpdb)[ Docs](https://github.com/Screenfeed/autowpdb)[ RSS](/packages/screenfeed-autowpdb/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (3)Dependencies (10)Versions (4)Used By (0)

AutoWPDB
========

[](#autowpdb)

Allows to manage custom database tables in WordPress.

Requires **php 7.0** and **WordPress 4.9.6**. With php 7.1+, can be used with WordPress 4.7.

What you will be able to do
---------------------------

[](#what-you-will-be-able-to-do)

- Decide if your custom table is network-wide or site-wide in a multisite environment,
- Create your table,
- Update your table structure,
- Determine if your table is ready to be used,
- Create custom CRUD methods, based on the basic ones provided,
- Provide default values,
- Cast and serialize values automatically.

How to install
--------------

[](#how-to-install)

With composer:

```
"require": {
	"screenfeed/autowpdb": "dev-master"
},
```

How to use
----------

[](#how-to-use)

Create 1 or 2 classes and you're ready:

- One that "defines" your custom table (name, default values, value types, schema, etc) by extending *TableDefinition\\AbstractTableDefinition*,
- Optionally, one containing your CRUD methods by extending *CRUD\\Basic*.

Example:

```
use Screenfeed\AutoWPDB\Table;
use Screenfeed\AutoWPDB\TableUpgrader;

add_action( 'plugins_loaded', 'my_plugin_init' );

function my_plugin_init() {
	// Your class defining your custom DB table.
	$table_def = new MyCustomTableDefinition();

	// The upgrader: it will upgrade your DB table automatically if its version changes.
	$upgrader = new TableUpgrader( new Table( $table_def ) );
	$upgrader->init();
}
```

Please take a look at [this plugin](https://github.com/Screenfeed/autowpdb-example-plugin) to see an example of use.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

3

Last Release

2069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28a15a62bebc943eac612deb52bb1230b71c878f1a6687cdf534b59b73a73ef6?d=identicon)[Screenfeed](/maintainers/Screenfeed)

---

Top Contributors

[![Screenfeed](https://avatars.githubusercontent.com/u/1878479?v=4)](https://github.com/Screenfeed "Screenfeed (7 commits)")

---

Tags

wordpressdatabase

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/screenfeed-autowpdb/health.svg)

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

###  Alternatives

[dbout/wp-orm

WordPress ORM with Eloquent.

1279.6k1](/packages/dbout-wp-orm)[williarin/wordpress-interop

Interoperability library to work with WordPress database in third party apps

6610.9k2](/packages/williarin-wordpress-interop)[10quality/wp-query-builder

Wordpress Query Builder class library for custom models and data querying.

4012.2k](/packages/10quality-wp-query-builder)[bradmkjr/monolog-wordpress

A handler for Monolog that sends messages to MySQL via WordPress Functions

2817.1k](/packages/bradmkjr-monolog-wordpress)[devgeniem/better-wp-db-error

Better WordPress database error handling.

1161.3k](/packages/devgeniem-better-wp-db-error)[friedolinfoerder/wp-activerecord

An ActiveRecord implementation for WordPress

237.2k](/packages/friedolinfoerder-wp-activerecord)

PHPackages © 2026

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