znframework / package-authentication
ZN Framework Authentication
Package info
github.com/znframework/package-authentication
pkg:composer/znframework/package-authentication
8.21.0
2025-01-05 13:55 UTC
Requires
- php: >=7.0.0
- znframework/package-cryptography: >=6.0
- znframework/package-database: >=6.0
- znframework/package-email: >=6.0
- znframework/package-storage: >=6.0
- znframework/package-zerocore: >=6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
ZN Framework Authentication Package
Follow the steps below for installation and use.
Installation
You only need to run the following code for the installation.
composer require znframework/package-authentication
Documentation
Click for documentation of your library.
Example Usage
Basic level usage is shown below.
<?php require 'vendor/autoload.php'; ZN\ZN::run(); use ZN\Request\Post; # Register User::register ( [ 'username' => Post::username(), 'password' => Post::password(), 'usermail' => Post::email(), 'address' => Post::address(), 'phone' => Post::mobilePhone() ], 'users/login' ); Output::display(User::error());
use ZN\Request\Post; $status = User::login(Post::username(), Post::password(), Post::rememberMe()); if( $status === false ) { redirect(URL::prev()); }