PHPackages                             sakuraphp/sakura - 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. sakuraphp/sakura

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

sakuraphp/sakura
================

Sakura library contains implementations of 3 methods, which can manage different types of hierarchical structure (tree) on relational database.

2.0(6y ago)2281GPL-2.0PHP

Since Sep 10Pushed 6y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (1)

Sakura
======

[](#sakura)

Sakura is library which manages hierarchical structure (tree) in database. Sakura can support various database libraries via external packages which implement interfaces of sakuraphp/sakura. Sakura contains implementation of 3 different methods:

- node with link to parent node Recursive
- node with link to parent node and order value Order
- node with left and right values of order Traversal

Installation
------------

[](#installation)

```
$ composer require sakuraphp/sakura-dibi
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 95.3% 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 ~533 days

Total

4

Last Release

2304d ago

Major Versions

v1.2 → 2.02020-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d94c2f608ca9a52b2b6f3d81a54693759c32953a00613b41c7d93461e32904d?d=identicon)[sakuraphp](/maintainers/sakuraphp)

---

Top Contributors

[![nikolaslada](https://avatars.githubusercontent.com/u/11044967?v=4)](https://github.com/nikolaslada "nikolaslada (81 commits)")[![najkl](https://avatars.githubusercontent.com/u/10740890?v=4)](https://github.com/najkl "najkl (4 commits)")

---

Tags

databasetreehierarchicalrdbmstraversal

### Embed Badge

![Health badge](/badges/sakuraphp-sakura/health.svg)

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

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

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M440](/packages/doctrine-migrations)[doctrine/data-fixtures

Data Fixtures for all Doctrine Object Managers

2.8k136.1M516](/packages/doctrine-data-fixtures)[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M405](/packages/robmorgan-phinx)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)

PHPackages © 2026

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