Download the PHP package redcatphp/identify without Composer
On this page you can find all versions of the php package redcatphp/identify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download redcatphp/identify
More information about redcatphp/identify
Files in redcatphp/identify
Package identify
Short Description Identify - Complete Authentication System, Session Management and Cryptographic libraries
License LGPL-3.0+ CC0-1.0
Homepage http://redcatphp.com/identify-user
Informations about the package identify
No longer actively maintained.
Identify
Identify is a complete authentication system with session management and cryptographic libraries. It including many third-party library.
Session
The surikat session handler is independent from native php session and use a strong random id cookie which is regenerated when $cookieLifetime expire. Unlike native php session it allow you to use a session over any length you want, like one year for example, and it integrate an anti-bruteforce system with attempts records based on hashed ip.
Auth
Here is the main authentication API which you can use with Auth class.
login
loginRoot
loginPersona
register
activate
requestReset
logout
getHash
getUID
getUser
deleteUser
validateLogin
validateDisplayname
resetPass
resendActivation
changePassword
getEmail
changeEmail
getRight
setRight
connected
allowed
allow
deny
lock
AuthServer
First parameter correspond to RedCat\Identify\Auth rights constants. You can use them directly, or if you use string (like in example) it will be automaticaly converted to corresponding constant. The rights constants are Auth::RIGHT_MANAGE, Auth::RIGHT_EDIT, Auth::RIGHT_MODERATE, Auth::RIGHT_POST.
The second parameter (true by default) is for enable GET redirection to avoid re-POST on refresh.
Following example is for use inside a code (off course with ob-implicit-flush setted to false). It will handle authentication process, from locking with authentication window to logout button ouput. Put the code where you want button to appear.
For handle signup and login process:
For get identity:
For handle reset password request:
For handle reset password confirmation:
For logout:
And, in any context, to get result message:
PHPMailer
PHPMailer - A full-featured email creation and transfer class for PHP.
PHPMailer is a third party toolbox. See the official PHPMailer and examples. There is simple facade class in RedCat\Identify namespace for use PHPMailer in simplicity:
RandomLib
RandomLib - A library for generating random numbers and strings.
RandomLib is a third party toolbox. See the official RandomLib
SecurityLib
SecurityLib is a third party toolbox (dependency of RandomLib). See the official SecurityLib
PhpSecLib
PhpSecLib - PHP Secure Communications Library.
PhpSecLib is a third party cryptography toolbox. See the official PhpSecLib
All versions of identify with dependencies
phpseclib/phpseclib Version ^2.0
ircmaxell/random-lib Version ^1.1
phpmailer/phpmailer Version ^6.0.0rc2
redcatphp/strategy Version dev-master
foxorm/foxorm Version dev-master