/(library root folder)
Confirm your registration at My Website
Your password reset request at My Website
You're done configuring. What follows are examples and tips that will help you get started.
Note: there are many more configuration directives in Config.php, including, but not limited to, error messages, which you can also customize. All Config directives can be changed on runtime, too.
For a full function reference, please use the documentation shipped with this library - it can be found inside the docs folder, or by clicking here.
This library has been implemented in full inside the examples folder. You can use that very folder for your own site, or just use it a quick reference when you're implementing the library into your project. The library was designed to work under webserver, fast-CGI and CLI environments; meaning that the usage of the library is not limited to websites.
\NAuthentication\Config::$Minimum_Password_Length = 6where you want the enforce 6 chars as password length minimum, and
\NAuthentication\Config::$Minimum_Password_Length = 10, and where you want 10 chars as password length minimum. This can be on the same page, too.
Utils::$dbInstanceto your already established database connection. Consequently, you can have the library initiate the database connection, and then you can use that connection by using the aforementioned property.
$Use_Library_Session_Namedirective inside Config.php
$Maximum_Log_In_Retries_In_30_Minutesinside Config.php (if you want to disable this feature, use
PHP_INT_MAXconstant instead of a number).
Tests are written for PHPUnit testing suite. To run tests, go to the library folder and execute the following in your terminal:
If you'd like me to integrate this library into your project, please send an email to [email protected]. Please include details regarding what needs to be done, and I'll be reply back with availability and rates (I'll most likely be ready to start within 24 hours, and my rates will be ranging from $25 to $33 per hour, depending on the amount of work I have at that moment). If you only have a question to ask, feel free to send me an email and I'll reply free of charge.
If you have any of these, feel free to send an email to [email protected]. Have in mind, though, that a lot of features are already on the TODO agenda. Thank you in advance.
Feel free to send me the idea and source of your implementation. If it's interesting, I'll include it in the docs pages with a link back to your project. It's good for everyone - people using this library will have more examples to go through, and your project gets more exposure.