PHPackages                             cpana/hierarchybundle - 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. cpana/hierarchybundle

ActiveSymfony-bundle

cpana/hierarchybundle
=====================

Hierarchy management with Neo4j and Symfony

02PHP

Since Mar 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cristianpana86/HierarchyBundle)[ Packagist](https://packagist.org/packages/cpana/hierarchybundle)[ RSS](/packages/cpana-hierarchybundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

HierarchyBundle
===============

[](#hierarchybundle)

Hierarchy Management with Neo4j and Symfony

This Symfony bundle manages a company hierarchy retrieving and stroring information to a Neo4j database. The hierarchy is based on groups: PHP group is part of Software Developement group, which is part of IT, etc. The users are members of these groups having differend kind of roles (manager, employee etc).

HierarchyBundle comes with a front where regular user can just browse data and an Admin area from where you can create, edit, delete info.

I got the idea for this bundle from the Neo4j documentation: HierarchyBundle is using the Neo4jPHP library

---

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

[](#installation)

**Use composer**:

```
composer require cpana/hierarchybundle

```

**Register the bundle in AppKernel**:

```
new CPANA\HierarchyBundle\CPANAHierarchyBundle(),

```

**Add your parameters to app/config/config.yml**:

```
cpana_hierarchy:
	group_hierarchy_manager_neo4j:
		neo4j_user:  'user'
		neo4j_password:  'password'
		def_rel_type_group_to_group: 'PART_OF'
		def_rel_type_user_to_group: 'MEMBER_OF'
		root_group_id: '11111'
		manager_role_property: 'manager'
		default_property_group:  'name'
		default_property_user: 'name'

```

You need to specify which is the root group node of your hierarchy by prodiving the Neo4j Id of that node in parameter "root\_group\_id".

**Import routes to app/config/routing.yml**:

```
cpana_hierarchy:
	resource: "@CPANAHierarchyBundle/Controller/"
	prefix:   /h
	type:     annotation

```

**Install assets**:

```
php app/console assets:install

```

In your browser type your project path and add **app\_dev.php/h/admin/home**. If you are using the sample data provided in the Wiki  search for user Peter, you should see something like this:

[![admin](https://camo.githubusercontent.com/95ef222138d03c70e44d07516a0dffe0491ec6148069cbf743c2ebe615b05ccc/68747470733a2f2f312e62702e626c6f6773706f742e636f6d2f2d386a4b356679336d677a382f567537614d667468444d492f414141414141414143576b2f5777683535326973636e63614267624978706b6f4f2d3878776b74456c717049512f733634302f61646d696e5f70657465722e504e47)](https://camo.githubusercontent.com/95ef222138d03c70e44d07516a0dffe0491ec6148069cbf743c2ebe615b05ccc/68747470733a2f2f312e62702e626c6f6773706f742e636f6d2f2d386a4b356679336d677a382f567537614d667468444d492f414141414141414143576b2f5777683535326973636e63614267624978706b6f4f2d3878776b74456c717049512f733634302f61646d696e5f70657465722e504e47)

**TO DO:**

1. Write tests
2. Handle nodes with 2 fathers

###  Health Score

19

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/9b05072d0ae922d470f0b96097c925b24f9b64f6dffc52f8d6450a558192364b?d=identicon)[cpana](/maintainers/cpana)

---

Top Contributors

[![cristianpana86](https://avatars.githubusercontent.com/u/13106810?v=4)](https://github.com/cristianpana86 "cristianpana86 (18 commits)")

### Embed Badge

![Health badge](/badges/cpana-hierarchybundle/health.svg)

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

PHPackages © 2026

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