PHPackages                             michele-angioni/phalcon-confer - 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. michele-angioni/phalcon-confer

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

michele-angioni/phalcon-confer
==============================

Roles and Permissions for PHP Phalcon Framework.

v1.1(8y ago)73.4k5MITPHPPHP &gt;=7.1

Since May 10Pushed 8y ago2 watchersCompare

[ Source](https://github.com/micheleangioni/phalcon-confer)[ Packagist](https://packagist.org/packages/michele-angioni/phalcon-confer)[ RSS](/packages/michele-angioni-phalcon-confer/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Confer
======

[](#confer)

[![License](https://camo.githubusercontent.com/715da15a2cc7a4928ef3982100cddbeddbc6922e9d2113198cfbf56276ff01a6/68747470733a2f2f706f7365722e707567782e6f72672f6d696368656c652d616e67696f6e692f7068616c636f6e2d636f6e6665722f6c6963656e7365)](https://packagist.org/packages/michele-angioni/phalcon-confer)[![Latest Stable Version](https://camo.githubusercontent.com/5f1c67e4233e9de5fa3f713e5b5d57ab24b5f7206eb97783a4efa433521e9b36/68747470733a2f2f706f7365722e707567782e6f72672f6d696368656c652d616e67696f6e692f7068616c636f6e2d636f6e6665722f762f737461626c65)](https://packagist.org/packages/michele-angioni/phalcon-confer)[![Latest Unstable Version](https://camo.githubusercontent.com/8345637a0f552d6e6eff80669a9b4bfdc4c3f40784f489a2e32d1c94b4342c35/68747470733a2f2f706f7365722e707567782e6f72672f6d696368656c652d616e67696f6e692f7068616c636f6e2d636f6e6665722f762f756e737461626c65)](https://packagist.org/packages/michele-angioni/phalcon-confer)[![Build Status](https://camo.githubusercontent.com/2fa2676b2c18274113b14b162eb2f19318ee2e547c3821f7ac3a32be6014a405/68747470733a2f2f7472617669732d63692e6f72672f6d696368656c65616e67696f6e692f7068616c636f6e2d636f6e6665722e737667)](https://travis-ci.org/micheleangioni/phalcon-confer)

Introduction
------------

[](#introduction)

Phalcon Confer, or simply Confer, empowers your application of a powerful yet flexible Roles and Permissions management system.

Either Users or User Teams can receive new Roles.

Confer has been highly inspired by the Laravel package [Entrust](https://github.com/Zizaco/entrust).

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

[](#installation)

Confer can be installed through Composer, just include `"michele-angioni/phalcon-confer": "^1.0"` to your composer.json and run `composer update` or `composer install`.

Then Confer migrations must run to create the needed tables. For this, you need to have installed the [Phalcon Dev Tools](https://github.com/phalcon/phalcon-devtools).

Alternatively, [Yarak](https://github.com/zachleigh/yarak) can be used to run the migrations. Just copy-paste the migration files into your migration folder and run `php yarak migrate`.

From your Phalcon document root, just run `phalcon migration run --migrations=vendor/michele-angioni/phalcon-confer/migrations` .

Usage
-----

[](#usage)

### Empowering Users

[](#empowering-users)

Let's say you have a `MyApp\Users` model you want to add roles to. It just needs to extend `MicheleAngioni\PhalconConfer\Models\AbstractConferModel` and use `MicheleAngioni\PhalconConfer\ConferTrait` like so:

```
