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

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

vanio/vanio-user-bundle
=======================

Symfony2 Bundle integrating FOSUserBundle and HWIOAuthBundle with some additional features and sane defaults

v0.3.0(7y ago)17.0k1MITPHPPHP ^7.1CI failing

Since Jun 17Pushed 6y ago7 watchersCompare

[ Source](https://github.com/vaniocz/vanio-user-bundle)[ Packagist](https://packagist.org/packages/vanio/vanio-user-bundle)[ Docs](https://github.com/vaniocz/vanio-user-bundle)[ RSS](/packages/vanio-vanio-user-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (13)Versions (13)Used By (0)

[![Vanio](https://camo.githubusercontent.com/b691445be273912a0905be759555aa166528db3a3606ddf1f25a54e734e7efbb/687474703a2f2f7777772e76616e696f2e637a2f696d672f76616e696f2d6c6f676f2e706e67)](http://www.vanio.cz) User Bundle
=============================================================================================================================================================================================================================

[](#-user-bundle)

[![Build Status](https://camo.githubusercontent.com/85fcec6794591e2615c94357bc4eb63532d064a62fd918d19adf335e71fe2d5a/68747470733a2f2f7472617669732d63692e6f72672f76616e696f637a2f76616e696f2d757365722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vaniocz/vanio-user-bundle)[![PHP7.1](https://camo.githubusercontent.com/ebd7d9f4fcf7f24cb52cda77fea30d0b50523d70b369c5da68678eeb95483d51/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e312d3642374542392e737667)](https://camo.githubusercontent.com/ebd7d9f4fcf7f24cb52cda77fea30d0b50523d70b369c5da68678eeb95483d51/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e312d3642374542392e737667)[![License](https://camo.githubusercontent.com/f89f07c454ba01435285df90bf15ae86929d2576b61d73912640669fb335b45a/68747470733a2f2f706f7365722e707567782e6f72672f76616e696f2f76616e696f2d757365722d62756e646c652f6c6963656e7365)](https://github.com/vaniocz/vanio-user-bundle/blob/master/LICENSE)

A Symfony2 Bundle integrating FOSUserBundle and HWIOauthBundle with some additional features and sane defaults.

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

[](#installation)

Installation can be done as usually using composer. `composer require vanio/vanio-user-bundle`

You can also install HWIOAuthBundle optionally if you want to support authentication via social accounts. `composer require php-http/guzzle6-adapter php-http/httplug-bundle hwi/oauth-bundle`

Next step is to register this bundle as well as bundles it depends on inside your `AppKernel`.

```
// app/AppKernel.php
// ...

class AppKernel extends Kernel
{
    // ...

    public function registerBundles(): array
    {
        $bundles = [
            // ...
            new FOS\UserBundle\FOSUserBundle,
            new Http\HttplugBundle\HttplugBundle, // Optional, dependency of HWIOAuthBundle
            new HWI\Bundle\OAuthBundle\HWIOAuthBundle, // Optional
            new Vanio\UserBundle\VanioUserBundle,
            new Vanio\UserBundle\VanioWebBundle,
        ];

        // ...
    }
}
```

Default Configuration
=====================

[](#default-configuration)

```
firewall_name: ~ # firewall name, auto-detected from security configuration when empty
email_only: false # whether to completely omit username and use email only
custom_storage_validation: false # whether to disable predefined uniqueness validation
use_flash_notifications: true # whether to enable notifications using flash messages (notify also on login and logout as an addition to FOSUserBundle)
registration_target_path: ~ # target path used for redirection after completed registration instead of default static pages
pass_target_path: # whether to pass referer in URL query parameter and use it as target path
    enabled: false
    default_target_path: / # default value when target path is not present, default_target_path option inside security configuration is ignored
    target_path_parameter: _target_path: # name of the parameter
    ignored_routes: [] # route names to ignore
    ignored_route_prefixes: # route name prefixes to ignore, the default ones are always merged in
        - fos_user_security_
        - fos_user_registration_
        - fos_user_resetting_
        - hwi_oauth_

social_authentication: ~ # whether to enable social authentication, automatically enabled when HWIOAuthUserBundle is installed
social_registration_form: # social registration form configuration
    type: Vanio\UserBundle\Form\SocialRegistrationFormType # form type
    name: hwi_oauth_registration_form # form name
    validation_groups: [SocialRegistration] # form validation groups
```

All these values are available as container parameters. They are prefixed using `vanio_user.` prefix.
This bundle prepends some defaults of SecurityBundle, FOSUserBundle and HWIOAuthBundle based on these configuration values to make the configuration easier.

The default prepended values are:

```
security:
    encoders:
        FOS\UserBundle\Model: bcrypt
    providers:
        fos_userbundle:
            id: fos_user.user_provider.username # or fos_user.user_provider.username_email when %vanio_user.email_only%

fos_user:
    firewall_name: %vanio_user.firewall_name%
    use_listener: false
    use_flash_notifications: %vanio_user.use_flash_notifications%
    registration:
        form:
            type: FOS\UserBundle\Form\Type\RegistrationFormType # or Vanio\UserBundle\Form\EmailOnlyRegistration when %vanio_user.email_only%
        confirmation:
            template: VanioUserBundle:Registration:email.html.twig
    resetting:
        email:
            template: VanioUserBundle:Resetting:email.html.twig
    profile:
        form:
            type: FOS\UserBundle\Form\Type\ProfileFormType # or Vanio\UserBundle\Form\EmailOnlyProfileType when %vanio_user.email_only%
    service:
        mailer: fos_user.mailer.twig_swift

hwi_oauth:
    firewall_names: [%vanio_user.firewall_name%]
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.2% 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.

###  Release Activity

Cadence

Every ~151 days

Total

4

Last Release

2850d ago

PHP version history (2 changes)v0.1.0PHP ^7.0

v0.3.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0d882c3421e9c9188486977fb9193ee5840db4e1ac071fae1305112c92ab04a?d=identicon)[maryo](/maintainers/maryo)

![](https://www.gravatar.com/avatar/83fd24874418acb2e635bc408732703403e16fea6c003224f1e066f07e239bcb?d=identicon)[stanleyk](/maintainers/stanleyk)

---

Top Contributors

[![maryo](https://avatars.githubusercontent.com/u/900769?v=4)](https://github.com/maryo "maryo (103 commits)")[![dvondrak](https://avatars.githubusercontent.com/u/11498368?v=4)](https://github.com/dvondrak "dvondrak (8 commits)")[![mlazovla](https://avatars.githubusercontent.com/u/2652944?v=4)](https://github.com/mlazovla "mlazovla (1 commits)")[![stanleyk](https://avatars.githubusercontent.com/u/510199?v=4)](https://github.com/stanleyk "stanleyk (1 commits)")

---

Tags

bundleuseroauth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vanio-vanio-user-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vanio-vanio-user-bundle/health.svg)](https://phpackages.com/packages/vanio-vanio-user-bundle)
```

###  Alternatives

[aimeos/ai-fosuser

Aimeos ai-fosuser extension

1111.4k4](/packages/aimeos-ai-fosuser)[bengor-user/user-bundle

Symfony bundle on top of BenGor's user library

136.4k8](/packages/bengor-user-user-bundle)

PHPackages © 2026

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