Download the PHP package demontpx/user-bundle without Composer
On this page you can find all versions of the php package demontpx/user-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package user-bundle
DemonTPx user bundle
This couples the FOSUserBundle to my Symfony apps
Installation
Add the user bundle to your symfony project:
Configuration
User roles can be added in your config/packages/demontpx_user.yaml
:
demontpx_user:
roles:
ROLE_ADMIN: Administrator
ROLE_GROUP_MANAGER: Group manager
ROLE_SUPER: Super user
ORM Data fixtures for testing can be added in config/packages/test/demontpx_user.yml
:
demontpx_user:
fixtures:
user: ~
admin: { roles: [ROLE_ADMIN] }
super_user: { roles: [ROLE_ADMIN, ROLE_SUPER] }
Users will get the same password as the user name, and you will be able to use the UserWebTestCase
class from the util bundle for your user-aware functional tests. You will also need to add this to your config/packages/test/security.yml
to enable this:
security:
firewalls:
main: # Replace this with your firewall name
http_basic: ~
Additional javascript and stylesheets
A SCSS file is located at assets/user-bundle.scss
which could be imported.
Some elements have the select2
class which could be enhanced by enabling select2 on them.
All versions of user-bundle with dependencies
ext-json Version *
symfony/config Version ^4.4|^5.0
symfony/dependency-injection Version ^4.4|^5.0
symfony/http-foundation Version ^4.4|^5.0
symfony/security-core Version ^4.4|^5.0
symfony/event-dispatcher-contracts Version ^1.1|^2.0
sensio/framework-extra-bundle Version ^5.5
symfony/form Version ^4.4|^5.0
doctrine/orm Version ^2.7
demontpx/util-bundle Version ^0.6