CI4-Auth is a user, group, role and permission management library for Codeigniter 4.
CI4-Auth is based on the great Myth-Auth library for Codeigniter 4 Due credits go to its author Lonnie Ezell and the team for this awesome work.
I started customizing Myth-Auth to meet my specific requirements but after a while I noticed that my changes got quite large. I decided to build CI4-Auth based on Myth-Auth, changing and adding features I needed for my projects.
- PHP 8.1+
- CodeIgniter 4.5+
- RobThree TwoFactorAuth
- Core Myth-Auth features
- Role objects are consistently called "role" in the code (e.g. tables, variables, classes)
- Added "Groups" as an addl. object, functioning just like roles
- Separated user controller functions from the Auth Controller
- 2FA based on RobThree's TwoFactorAuth
- Added views to manage users, groups, roles and permissions
- Added views to setup 2FA and for 2FA PIN login
- Added database seeders to create sample data
- Language support for English, German and Spanish
- Bootstrap 5 (CDN)
- Bootstrap Icons (CDN)
- Google Font "Open Sans" (CDN)
The CI4-Auth library is not perfect. It may very well contain bugs or things that can be done better. If you stumble upon such things, let me know via a GitHub issue. Otherwise I hope the library will help you. Feel free to change anything to meet the requirements in your environment.
Enjoy, George Lewe