Code Igniter User Authentication/Management Library
July 20th, 2006
Update May 31, 2008. There's been some interest in the post recently. CodeIgniter has evolved considerably since I first wrote this, and the Auth library as it stands now is not something that I wrote. There are many good alternatives for user authentication in CI.
Update: Peccavio has taken over this project from me. The new home is http://tomcode.com/inside/codeigniter/userauth/test/.
Code Igniter is meant to be a flexible, agile and light PHP framework. As such, for philosophical reasons it does not include a user authentication or management component (it would look different for each user). That said, user management is one of the most commonly requested features, and since I needed one for The Shakespeare XML Project, I decided to build my own Code Igniter User Authentication/Management Library.
If you haven’t been following the developments of the original userauth library thread, there’s been some very nice code contributed. In particular, Craig posted some nice user management code, which has been evolved into a full front-end/mini-framework.
If you are looking to start a CI project with a user managment requirement, take a look at http://userauth.bambooinvoice.org/. Although there is still work to be done, it’s ready for use now. Any future modifications will be mostly cosmetic in nature - or will be of the “housekeeping” variety (ie: finish moving DB logic into models). There are installation instructions, and an install file that will create your tables and insert a default user - so hopefully you don’t need to fiddle too much with the code to get it up and running.
I wrote it in PHP 5 since that’s what I use, but conversion into 4 should be trivial, and I’ll tackle that shortly.
TODO:
- Finish moving into models;
- Finish eye-candy javascript;
- AJAXify the darn thing;
- Make it compatible with PHP 4.
All thoughts, code suggestions and critiques are welcome and wanted. As it gets updated I’ll post back to this thread, so subscribe to it if you want an easy way to stay on top.
This entry was made on July 20th, 2006 @ 14:59 and filed into CodeIgniter.
