berlindb/core

A collection of PHP classes and functions that aims to provide an ORM-like experience and interface to WordPress database tables.

Maintainers

Details

github.com/berlindb/core

Source

Issues

Installs: 277 817

Dependents: 5

Suggesters: 0

Security: 0

Stars: 263

Watchers: 19

Forks: 28

Open Issues: 30

pkg:composer/berlindb/core

2.0.2 2025-10-23 20:00 UTC

README

BerlinDB is a collection of PHP classes and functions that aims to provide an ORM-like experience and interface to WordPress database tables.

This repository contains all of the code that is required to be included in your WordPress project.

The most common use-case for BerlinDB is a WordPress Plugin that needs to create custom database tables, but more advanced uses are possible, including managing and interfacing with the WordPress Core database tables themselves.

Future repositories in this organization will contain examples, extensions, drop-ins, unit tests, and more.

The name of this project comes from WordCamp Europe 2019, where it was originally announced as an unnamed library. Thank you to Peter Wilson for the idea to pay homage to such a wonderful audience.

The code in this repository represents the cumulative effort of dozens of individuals across multiple projects, spanning multiple continents, native languages, and years of conceptual development:

These projects all require custom database tables to achieve their goals (and to meet the expectations that their users have in them) to perform and scale flawlessly in a highly available WordPress based web application.

Each of these projects originally implemented their own bespoke approaches to database management, resulting in a massive amount of code duplication, rework, and eventual fragmentation of approaches and ideas.

This project helps avoid those issues by (somewhat magically) limiting how much code you need to write to accomplish the same repetitive database related tasks.

This organization was created by John James Jacoby while working at Sandhills Development, LLC.