Download the PHP package mouf/security.daos.tdbm without Composer
On this page you can find all versions of the php package mouf/security.daos.tdbm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mouf/security.daos.tdbm
More information about mouf/security.daos.tdbm
Files in mouf/security.daos.tdbm
Package security.daos.tdbm
Short Description This package contains a basic user/role/right database model for TDBM.
License MIT
Homepage http://mouf-php.com/packages/mouf/security.daos.tdbm
Informations about the package security.daos.tdbm
TDBM DAOs for Mouf security
What is it?
This package contains a set of TDBM DAOs adding a basic user / role / right support for Mouf security.
This package will create tables for users, roles and rights.
Installation
Run:
Then, go to the Mouf user interface.
In Mouf:
- run the install tasks.
- apply the database patches
- regenerate TDBM DAOs
At this point, you should have a database with 4 additional tables: users
, users_roles
, roles
, roles_rights
.
Check the newly generated UserBean
class.
Change this class so that:
- it extends
UserInterface
- it uses the
UserTrait
Adding new rights
Available rights are listed in the Mouf\Security\Rights\RightsRegistry
.
The RightsRegistry
contains a list of rights implementing the RightInterface
.
In order to add a new right, connect to Mouf, edit the Mouf\Security\Rights\RightsRegistry
instance and drag'n'drop new rights in the rights
property.
All versions of security.daos.tdbm with dependencies
mouf/database.tdbm Version ~5.3
mouf/database.patcher Version ~2.0
mouf/security.userservice Version ^3.0
mouf/security.rightsservice Version ^3.0
mouf/security.forgot-your-password-interface Version ^1.1
mouf/security.user-management-ui-interface Version ^1.0