PHPackages                             seyfer/kohana-orm-mptt - 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. seyfer/kohana-orm-mptt

ActiveKohana-module[Database &amp; ORM](/categories/database)

seyfer/kohana-orm-mptt
======================

Kohana 3.3 module - Modified Preorder Tree Traversal library for Kohana ORM

3171PHP

Since Dec 30Pushed 11y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

This forks aims to make MPTT work with Kohana 3.3
-------------------------------------------------

[](#this-forks-aims-to-make-mptt-work-with-kohana-33)

So far we've only fixed filename for PSR-0, so usage is the same than before

MPTT Library, extends ORM
-------------------------

[](#mptt-library-extends-orm)

### Setup

[](#setup)

Place module in /modules/ and include the call in your bootstrap.

### Declaring your ORM object

[](#declaring-your-orm-object)

```
class Model_Category extends ORM_MPTT {
}

```

### Usage Examples

[](#usage-examples)

#### Creating a root node:

[](#creating-a-root-node)

```
$cat = ORM::factory('Category_Mptt');
$cat->name = 'Music';
$cat->insert_as_new_root();
echo 'Category ID'.$mptt->id.' set at level '.$cat->lvl.' (scope: '.$cat->scope.')';
$c1 = $cat; // Saving id for next example

```

#### Creating a child node:

[](#creating-a-child-node)

```
$cat->clear(); // Clearing ORM object
$cat->name = 'Terminology';
$cat->insert_as_last_child($c1);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71775d95a4c19f629135c951e986592c79f63ed0f38c4eabfa767f5144909ea9?d=identicon)[seyfer](/maintainers/seyfer)

---

Top Contributors

[![evopix](https://avatars.githubusercontent.com/u/99371?v=4)](https://github.com/evopix "evopix (50 commits)")[![rafi](https://avatars.githubusercontent.com/u/147918?v=4)](https://github.com/rafi "rafi (4 commits)")[![seyfer](https://avatars.githubusercontent.com/u/1483925?v=4)](https://github.com/seyfer "seyfer (4 commits)")[![erralb](https://avatars.githubusercontent.com/u/790992?v=4)](https://github.com/erralb "erralb (2 commits)")[![flody](https://avatars.githubusercontent.com/u/1564558?v=4)](https://github.com/flody "flody (1 commits)")

### Embed Badge

![Health badge](/badges/seyfer-kohana-orm-mptt/health.svg)

```
[![Health](https://phpackages.com/badges/seyfer-kohana-orm-mptt/health.svg)](https://phpackages.com/packages/seyfer-kohana-orm-mptt)
```

###  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.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M542](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

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

PHPackages © 2026

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