PHPackages                             berlindb/core - 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. berlindb/core

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

berlindb/core
=============

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

2.0.2(6mo ago)267384.1k—1%27[25 issues](https://github.com/berlindb/core/issues)[5 PRs](https://github.com/berlindb/core/pulls)6MITPHP

Since Jul 12Pushed 5mo ago19 watchersCompare

[ Source](https://github.com/berlindb/core)[ Packagist](https://packagist.org/packages/berlindb/core)[ RSS](/packages/berlindb-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (8)Used By (6)

BerlinDB
========

[](#berlindb)

BerlinDB is a collection of PHP classes and functions that aims to provide an [ORM](https://en.wikipedia.org/wiki/Object-relational_mapping)-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](https://jjj.blog/wceu-2019/) as an unnamed library. Thank you to [Peter Wilson](https://peterwilson.cc) 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:

- Easy Digital Downloads ([3.0 and higher](https://github.com/easydigitaldownloads/easy-digital-downloads/tree/release/3.0))
- Sugar Calendar ([2.0 and higher](https://github.com/sugarcalendar/sugar-event-calendar-lite))
- Restrict Content Pro ([3.1 and higher](https://github.com/restrictcontentpro))
- WordPress Multisite ([inspired by](https://make.wordpress.org/core/components/networks-sites/))
- BuddyPress ([inspired by](https://buddypress.org))

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](https://github.com/JJJ) while working at [Sandhills Development, LLC](https://sandhillsdev.com).

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity55

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.5% 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 ~782 days

Total

3

Last Release

207d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/9e6206223bd6f2a57b8ac80605b1b5c3521faaec18ad3f20f25fb728a9a13784?d=identicon)[tstandiford](/maintainers/tstandiford)

---

Top Contributors

[![JJJ](https://avatars.githubusercontent.com/u/88951?v=4)](https://github.com/JJJ "JJJ (98 commits)")[![alexstandiford](https://avatars.githubusercontent.com/u/8210827?v=4)](https://github.com/alexstandiford "alexstandiford (4 commits)")[![jeawhanlee](https://avatars.githubusercontent.com/u/38788055?v=4)](https://github.com/jeawhanlee "jeawhanlee (3 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![ashleyfae](https://avatars.githubusercontent.com/u/6324272?v=4)](https://github.com/ashleyfae "ashleyfae (2 commits)")[![spleen1981](https://avatars.githubusercontent.com/u/43221199?v=4)](https://github.com/spleen1981 "spleen1981 (2 commits)")[![Khadreal](https://avatars.githubusercontent.com/u/10527515?v=4)](https://github.com/Khadreal "Khadreal (1 commits)")[![mahmoudsaeed](https://avatars.githubusercontent.com/u/70577513?v=4)](https://github.com/mahmoudsaeed "mahmoudsaeed (1 commits)")[![rmorse](https://avatars.githubusercontent.com/u/853547?v=4)](https://github.com/rmorse "rmorse (1 commits)")[![CrochetFeve0251](https://avatars.githubusercontent.com/u/18537428?v=4)](https://github.com/CrochetFeve0251 "CrochetFeve0251 (1 commits)")[![jkudish](https://avatars.githubusercontent.com/u/260253?v=4)](https://github.com/jkudish "jkudish (1 commits)")

---

Tags

databaseormwordpress

### Embed Badge

![Health badge](/badges/berlindb-core/health.svg)

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

###  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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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