PHPackages                             isinlor/baobab-pdo - 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. isinlor/baobab-pdo

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

isinlor/baobab-pdo
==================

A library applying the nested set model

v1.3.0(12y ago)09Apache 2.0PHPPHP &gt;=5.2.0

Since Jan 26Pushed 6y agoCompare

[ Source](https://github.com/Isinlor/Baobab-PDO)[ Packagist](https://packagist.org/packages/isinlor/baobab-pdo)[ Docs](http://www.sideralis.org/baobab)[ RSS](/packages/isinlor-baobab-pdo/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Baobab ( a library applying the *nested set model* )
====================================================

[](#baobab--a-library-applying-the-nested-set-model-)

Baobab is a library to save tree structured data in a relational database.

Currently there is only a PHP implementation working with MySQL, but it shouldn't be too difficult to port to other languages or databases (most of the work is done via SQL queries and the code is mostly a support to them).

The technique used is Joe Celko's *nested set model*, modified so that a table can hold more than one tree, to help with cases such as storing threads of a forum (each thread is a tree and they all have an identical structure).

In fact when the library asks you for a "tree name", it's really asking for a forest name, because each table created can hold more than one tree.

We have more than one hundred tests to ensure the library is doing The Right Thing (™), a straightforward API and a clean documentation.

You can find the library's documentation at

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 84.7% 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 ~41 days

Total

2

Last Release

4443d ago

### Community

Maintainers

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

---

Top Contributors

[![riquito](https://avatars.githubusercontent.com/u/239925?v=4)](https://github.com/riquito "riquito (127 commits)")[![Isinlor](https://avatars.githubusercontent.com/u/528893?v=4)](https://github.com/Isinlor "Isinlor (22 commits)")[![chdeliens](https://avatars.githubusercontent.com/u/991003?v=4)](https://github.com/chdeliens "chdeliens (1 commits)")

---

Tags

sqltreeMPTTnested set model

### Embed Badge

![Health badge](/badges/isinlor-baobab-pdo/health.svg)

```
[![Health](https://phpackages.com/badges/isinlor-baobab-pdo/health.svg)](https://phpackages.com/packages/isinlor-baobab-pdo)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k118.8M365](/packages/gedmo-doctrine-extensions)[jdorn/sql-formatter

a PHP SQL highlighting library

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

a PHP SQL highlighting library

1.9k166.0M84](/packages/doctrine-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[stof/doctrine-extensions-bundle

Integration of the gedmo/doctrine-extensions with Symfony

1.9k85.3M380](/packages/stof-doctrine-extensions-bundle)

PHPackages © 2026

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