Flexible, Powerful, Secure auth package for CodeIgniter 4. official site.
Installation is best done via Composer. Assuming Composer is installed globally, you may use the following command:
> composer require myth/auth
Edit app/Config/Validation.php and add the following value to the ruleSets array:
\Myth\Auth\Authentication\Passwords\ValidationRules::class
First, edit application/Config/Filters.php and add the following entries to the aliases property:
'login' => \Myth\Auth\Filters\LoginFilter::class,
'role' => \Myth\Auth\Filters\RoleFilter::class,
'permission' => \Myth\Auth\Filters\PermissionFilter::class,