PHPackages                             spomky-labs/role-hierarchy-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. spomky-labs/role-hierarchy-bundle

AbandonedArchivedSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

spomky-labs/role-hierarchy-bundle
=================================

Symfony2 Role Hierarchy Bundle

v3.0.0(10y ago)98712[1 PRs](https://github.com/Spomky-Labs/RoleHierarchyBundle/pulls)MITPHPPHP &gt;=5.6

Since Nov 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Spomky-Labs/RoleHierarchyBundle)[ Packagist](https://packagist.org/packages/spomky-labs/role-hierarchy-bundle)[ Docs](https://github.com/Spomky-Labs/RoleHierarchyBundle)[ RSS](/packages/spomky-labs-role-hierarchy-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (16)Versions (11)Used By (0)

Role Hierarchy
==============

[](#role-hierarchy)

[![Scrutinizer Quality Score](https://camo.githubusercontent.com/5c9b06c4d1846c0b26d853551af9e7e94fdf87285db4a187367092df6afaed65/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53706f6d6b792d4c6162732f526f6c6548696572617263687942756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d30653837353538343838646566363862653062373234666638376364356432623433636334346538)](https://scrutinizer-ci.com/g/Spomky-Labs/RoleHierarchyBundle/)[![Build Status](https://camo.githubusercontent.com/4336bf7900a3bd21b8710688c862e801346e3cc8e5061ac274ccc8d9f24c6ef5/68747470733a2f2f7472617669732d63692e6f72672f53706f6d6b792d4c6162732f526f6c6548696572617263687942756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Spomky-Labs/RoleHierarchyBundle)[![HHVM Status](https://camo.githubusercontent.com/da15ac23210c3ee984f22afe2ef54b7487b895a70c6550d4a800234548e4b79b/687474703a2f2f6868766d2e683463632e64652f62616467652f73706f6d6b792d6c6162732f726f6c652d6869657261726368792d62756e646c652e737667)](http://hhvm.h4cc.de/package/spomky-labs/role-hierarchy-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/d8379194b65fea8d94c59ca161fc2a79b7e2d7192ed6d5a43581420de8a0aaca/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64643731353838312d313634352d346136372d383237352d3434643861636161353662362f6269672e706e67)](https://insight.sensiolabs.com/projects/dd715881-1645-4a67-8275-44d8acaa56b6)

[![Latest Stable Version](https://camo.githubusercontent.com/b045679080565c458dec9c583c7f17b4f7872d9b63642db94fd5c1dd1f08d922/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f726f6c652d6869657261726368792d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/spomky-labs/role-hierarchy-bundle)[![Total Downloads](https://camo.githubusercontent.com/30a94a0b462fd78ee513419c79b56af1a2fd129567b76c7446284eda34175273/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f726f6c652d6869657261726368792d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/spomky-labs/role-hierarchy-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/bfc80722b99dc0400ea50ca8c9cf351efeaa389776e53dd38c5dc75b19512f68/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f726f6c652d6869657261726368792d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/spomky-labs/role-hierarchy-bundle)[![License](https://camo.githubusercontent.com/a9da357071a6b2e8dce741b1ec9e1a8f59afbfa61f07e63fa0330b2f9e817124/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f726f6c652d6869657261726368792d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/spomky-labs/role-hierarchy-bundle)

Prerequisites
=============

[](#prerequisites)

This version of the bundle requires:

- Symfony 2.8 or 3.0+
- PHP 5.6+

It has been successfully tested using `PHP 5.6` to `PHP 7.0` and `HHVM` under Symfony `2.8` to `3.0`.

Installation
============

[](#installation)

Installation is a quick 4 steps process:

- Install the bundle
- Enable the bundle
- Create your model class
- Configure the bundle

\##Step 1: Install the bundle##

The preferred way to install this bundle is to rely on Composer:

```
composer require spomky-labs/role-hierarchy-bundle
```

\##Step 2: Enable the bundle##

Finally, enable the bundle in the kernel:

```
