PHPackages                             kapilpatel20/bvrolepermission - 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. kapilpatel20/bvrolepermission

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

kapilpatel20/bvrolepermission
=============================

A Role Base Permission with fos userbundle

0176JavaScript

Since Apr 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kapilpatel20/bvrolepermission)[ Packagist](https://packagist.org/packages/kapilpatel20/bvrolepermission)[ RSS](/packages/kapilpatel20-bvrolepermission/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

bvrolepermission
================

[](#bvrolepermission)

Role Base permission with fos userbundle

Installation Steps

1. add "friendsofsymfony/user-bundle": "~2.0@dev" in your composer.json file under "require"
2. composer require kapilpatel20/bvrolepermission register bundle in AppKernel.php

    new FOS\\UserBundle\\FOSUserBundle(), new BvRoleBundle\\BvRoleBundle()
3. open yourproject/app/config/config.yml, put below code in this file

    fos\_user: db\_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel' firewall\_name: main user\_class: BvRoleBundle\\Entity\\User firewall\_name: main group: group\_class: BvRoleBundle\\Entity\\Group
4. open yourproject/app/config/routing.yml, put below code in this file

    bv\_role: resource: "@BvRoleBundle/Resources/config/routing.yml" prefix: /
5. open yourproject/app/config/security.yml, update your code with following

    security: encoders: FOS\\UserBundle\\Model\\UserInterface: bcrypt

    role\_hierarchy: ROLE\_ADMIN: ROLE\_USER ROLE\_SUPER\_ADMIN: ROLE\_ADMIN

    providers: fos\_userbundle: id: fos\_user.user\_provider.username

    firewalls: main: pattern: ^/ form\_login: provider: fos\_userbundle #csrf\_token\_generator: security.csrf.token\_manager # if you are using Symfony &lt; 2.8, use the following config instead: success\_handler: login\_success\_handler csrf\_provider: form.csrf\_provider

    ```
         logout:       true
         anonymous:    true

    ```

    access\_control: - { path: ^/login$, role: IS\_AUTHENTICATED\_ANONYMOUSLY } - { path: ^/register, role: IS\_AUTHENTICATED\_ANONYMOUSLY } - { path: ^/resetting, role: IS\_AUTHENTICATED\_ANONYMOUSLY } - { path: ^/admin/, role: ROLE\_ADMIN }
6. open yourproject/app/config/services.yml, update your code with following

    services: fos\_user.doctrine\_registry: alias: doctrine
7. generate tables

    php app/console doctrine:schema:update --dump-sql php app/console doctrine:schema:update --force

That's it!!!!!! Now you can check effect of this bundle from your browser. open your browser and

[http://localhost/YOUR-PROJECT-NAME/web/app\_dev.php/login](http://localhost/YOUR-PROJECT-NAME/web/app_dev.php/login)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![kapilpatel20](https://avatars.githubusercontent.com/u/12792291?v=4)](https://github.com/kapilpatel20 "kapilpatel20 (20 commits)")

### Embed Badge

![Health badge](/badges/kapilpatel20-bvrolepermission/health.svg)

```
[![Health](https://phpackages.com/badges/kapilpatel20-bvrolepermission/health.svg)](https://phpackages.com/packages/kapilpatel20-bvrolepermission)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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