PHPackages                             antoinemineau/tree-bundle - 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. [Admin Panels](/categories/admin)
4. /
5. antoinemineau/tree-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

antoinemineau/tree-bundle
=========================

This Symfony bundle integrates jsTree and Gedmo Nested Set directly to Sonata Admin

08.9k1Twig

Since Apr 16Pushed 1y agoCompare

[ Source](https://github.com/antoinemineau/sonata-admin-tree-bundle)[ Packagist](https://packagist.org/packages/antoinemineau/tree-bundle)[ RSS](/packages/antoinemineau-tree-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

sonata-admin-tree-bundle
========================

[](#sonata-admin-tree-bundle)

This bundle integrates [jsTree](https://www.jstree.com/) and [Gedmo Nested Set](https://github.com/stof/StofDoctrineExtensionsBundle) directly to [Sonata Admin](https://sonata-project.org/).

A tree builds itself in an asynchronous way. Hence, it's quite good for big trees.

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

[](#installation)

### Install requirements

[](#install-requirements)

**SonataAdminBundle**
\- the SonataAdminBundle provides an installation article here:

**StofDoctrineExtensionsBundle**
\- then you need to install StofDoctrineExtensionsBundle

**Enable Tree Extension**
\- nested behaviour will implement the standard Nested-Set behaviour on your Entity

### Install TreeBundle

[](#install-treebundle)

Install it via composer

```
composer require redcode/tree-bundle
```

Register the bundle in your app kernel `./app/AppKernel.php`

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new RedCode\TreeBundle\RedCodeTreeBundle(),
        );
        ...
    }
}
```

Add the following lines to the routing file `./app/config/routing.yml`

```
redcode_tree:
    resource: "@RedCodeTreeBundle/Resources/config/routing.yml"
    prefix:   /admin
```

For the entity with enabled [Gedmo Nested Set](https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/tree.md) follow these steps:

Extend Admin class from `\RedCode\TreeBundle\Admin\AbstractTreeAdmin`

```
class SubjectAdmin extends AbstractTreeAdmin
{
...
}
```

Extend AdminController from `\RedCode\TreeBundle\Controller\TreeAdminController`

```
class SubjectAdminController extends TreeAdminController
{
...
}
```

When registering the admin as a service, you need to provide a fourth argument - the name of the field that will be shown in the tree.

```
app.admin.subject:
    class: AppBundle\Admin\SubjectAdmin
    arguments: [~, AppBundle\Entity\Subject, AppBundle:SubjectAdmin, 'word']
    tags:
        - {name: sonata.admin, manager_type: orm, group: Search, label: Subject}
```

How it looks like
-----------------

[](#how-it-looks-like)

[![redcode/tree-bundle](https://camo.githubusercontent.com/08b1cb9e6e020b26ecb5f80533d86c6868bbececb22fd5c1e2c8b64f1c670256/687474703a2f2f672e7265636f726469742e636f2f517764627252335039522e676966)](https://camo.githubusercontent.com/08b1cb9e6e020b26ecb5f80533d86c6868bbececb22fd5c1e2c8b64f1c670256/687474703a2f2f672e7265636f726469742e636f2f517764627252335039522e676966)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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/577bc6bfdf3f5ff94a36dec00f919c4d7eea0c111b0273bf226733fd4a978489?d=identicon)[antmin](/maintainers/antmin)

---

Top Contributors

[![antoinemineau](https://avatars.githubusercontent.com/u/520893?v=4)](https://github.com/antoinemineau "antoinemineau (15 commits)")[![maZahaca](https://avatars.githubusercontent.com/u/1290067?v=4)](https://github.com/maZahaca "maZahaca (7 commits)")[![Kleinast](https://avatars.githubusercontent.com/u/2306947?v=4)](https://github.com/Kleinast "Kleinast (1 commits)")[![JacquesDurand](https://avatars.githubusercontent.com/u/59364973?v=4)](https://github.com/JacquesDurand "JacquesDurand (1 commits)")[![mgrajcarek](https://avatars.githubusercontent.com/u/1970?v=4)](https://github.com/mgrajcarek "mgrajcarek (1 commits)")[![Padam87](https://avatars.githubusercontent.com/u/776488?v=4)](https://github.com/Padam87 "Padam87 (1 commits)")[![RomainSanchez](https://avatars.githubusercontent.com/u/18164227?v=4)](https://github.com/RomainSanchez "RomainSanchez (1 commits)")

### Embed Badge

![Health badge](/badges/antoinemineau-tree-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/antoinemineau-tree-bundle/health.svg)](https://phpackages.com/packages/antoinemineau-tree-bundle)
```

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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