This PHP 8 class provides an easy way to manage htpasswd files.
After setting a .htpasswd file you can
- add - a user and password
- exists - check if a given user exists
- list - list all uses
- remove - a user
- update - a user and password - optional after verifying the current password
- verify - a password of an existing user
There is a 2nd class to handle .htgoups file too. It can handle goups:
- add
- rename
- delete groups
- list all groups or members
... and memberships
- userAdd
- userRemove
๐ค Axel Hahn
๐ Source: https://github.com/axelhahn/php-htpasswd/
๐ Licence: GNU GPL 3
๐ Docs: https://www.axel-hahn.de/docs/php-htpasswd/