tgrj / tweb_adapter_users
users management implementation into tweb framework
Requires
- php: ^7.0|^8.0
- tgrj/tweb_adapter_rb: ^3.0
- tgrj/tweb_config: ^2.0
- tgrj/tweb_logger: ^2.0
Requires (Dev)
- phpunit/phpunit: ^12.0
README
users management implementation into tweb framework
About
With this module I wanted to have some basic users management system, which will be used with tweb_auth as well, basically. It needs tweb_adapter_rb to function, since it all is based on RedBeansPHP.
Usage
It serves functions for simple user management, which will technically also create a user-table. Since it is RedBean, this user table is quite flexible. More columsn / fields could be extended later on. This basic user table is just the minimum requirement for the whole auth process to work correctly. Thess functions are available with this module to manage users:
- tweb_create_user_table()
- tweb_user_create()
- tweb_user_delete()
- tweb_user_set_password()
- tweb_user_set_username()
- tweb_verify_role()
The tweb_create_user_table() function should be called in the DB setup process. It won't be called otherwise, which could lead to problems, if the RedBean mode is set to "frozen" and not "fluid".