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

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

soft-passio/user-bundle
=======================

SoftPassio user bundle

3.1(5y ago)01.1kMITPHPPHP ^7.2

Since Oct 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SoftPassio/UserBundle)[ Packagist](https://packagist.org/packages/soft-passio/user-bundle)[ RSS](/packages/soft-passio-user-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (8)Versions (25)Used By (0)

SoftPassio UserBundle documentation v2.0
========================================

[](#softpassio-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/SoftPassio/UserBundle/tree/v1).

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

[](#installation)

Required the bundle with composer:

```
$ php composer.phar require soft-passio/user-bundle

```

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

[](#configuration)

Register the bundle in your AppKernel.php

```
// ./app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        ...
        new SoftPassio\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

```
