PHPackages                             thebuggenie/b2db - 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. thebuggenie/b2db

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

thebuggenie/b2db
================

B2DB is a lightweight ORM for modern PHP applications

v3.0.3(5y ago)018.0k↓80%4[1 issues](https://github.com/thebuggenie/b2db/issues)[1 PRs](https://github.com/thebuggenie/b2db/pulls)1MPL-2.0PHPPHP &gt;=7.0.0

Since Jul 23Pushed 3y ago3 watchersCompare

[ Source](https://github.com/thebuggenie/b2db)[ Packagist](https://packagist.org/packages/thebuggenie/b2db)[ RSS](/packages/thebuggenie-b2db/feed)WikiDiscussions master Synced 4w ago

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

B2DB PHP ORM
============

[](#b2db-php-orm)

B2db is a lightweight ORM and DBAL for modern PHP applications (7.1 or newer), that works MySQL, MariaDB, Postgres and Microsoft SQL server.

B2db uses a Data Mapper pattern implementing Active Records. Read more about the architecture in [b2db architecture](docs/architecture.md)

Getting started
===============

[](#getting-started)

Install composer
----------------

[](#install-composer)

B2db uses [composer](https://getcomposer.org) for dependency management, and should be installed and used via composer.

For more information about how to set up b2db, see [Installation and setup](docs/installation.md)

Documentation
-------------

[](#documentation)

Browse [the documentation](docs/README.md).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~380 days

Recently: every ~191 days

Total

6

Last Release

2042d ago

Major Versions

v1.0 → v2.02018-08-31

v2.0 → v3.0.02018-12-12

PHP version history (2 changes)v1.0PHP &gt;=5.3.0

v2.0PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![zegenie](https://avatars.githubusercontent.com/u/205936?v=4)](https://github.com/zegenie "zegenie (61 commits)")[![nrensen](https://avatars.githubusercontent.com/u/10367977?v=4)](https://github.com/nrensen "nrensen (2 commits)")[![azaghal](https://avatars.githubusercontent.com/u/809269?v=4)](https://github.com/azaghal "azaghal (1 commits)")[![dachaac](https://avatars.githubusercontent.com/u/9357671?v=4)](https://github.com/dachaac "dachaac (1 commits)")

---

Tags

databaseormmysqlpostgresmariadbdb

### Embed Badge

![Health badge](/badges/thebuggenie-b2db/health.svg)

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

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M35](/packages/scienta-doctrine-json-functions)[longitude-one/doctrine-spatial

Doctrine multi-platform support for spatial types and functions, compliant with Doctrine 2.19, 3.1, and dev ones (3.2 and 4.0).

891.4M1](/packages/longitude-one-doctrine-spatial)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

41234.1k4](/packages/aura-sqlschema)[chillerlan/php-database

An extensible database wrapper and query builder.

431.2k2](/packages/chillerlan-php-database)

PHPackages © 2026

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