PHPackages                             tymo49/user-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. tymo49/user-bundle

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

tymo49/user-bundle
==================

Appverk user bundle

3.2(5y ago)011MITPHP ^7.2

Since Oct 24Compare

[ Source](https://github.com/tymo49/UserBundle)[ Packagist](https://packagist.org/packages/tymo49/user-bundle)[ RSS](/packages/tymo49-user-bundle/feed)WikiDiscussions Synced 4d ago

READMEChangelogDependencies (10)Versions (20)Used By (0)

Appverk UserBundle documentation v2.0
=====================================

[](#appverk-userbundle-documentation-v20)

Simple and lightweight User bundle for Symfony 3 projects. Provides user and role functionalities with ACL support.

Old version:
------------

[](#old-version)

If u need help with 1.\* branch, visit [v1.x documentation](https://github.com/AppVerk/UserBundle/tree/v1).

Installation:
-------------

[](#installation)

Required the bundle with composer:

```
$ php composer.phar require app-verk/user-bundle

```

Configuration
-------------

[](#configuration)

Register the bundle in your AppKernel.php

```
// ./app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        ...
        new AppVerk\UserBundle\UserBundle(),
        ...
    ];
}

```

Add a new config file, for example user.yml

```
#./app/config/user.yml

 user:
     entities:
        user_class: #E.g. AppBundle\Entity\User

     acl:
        enabled:       #true|false defines to use or not to use ACL
        access_denied_path: #route bame where user should be redirect when he dont have privileges to action

```

Import user.yml file to config.yml

```
imports:
...
- { resource: user.yml }

```

Next create two entities in your bundle (E.g. AppBundle\\Entity):

- User

```
