2017 © Pedro Peláez
 

library package-authentication

ZN Framework Authentication

image

znframework/package-authentication

ZN Framework Authentication

  • Wednesday, August 1, 2018
  • by znframework
  • Repository
  • 3 Watchers
  • 0 Stars
  • 153 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 49 % Grown

The README.md

, (*1)

ZN Framework Authentication Package

Follow the steps below for installation and use. , (*2)

Installation

You only need to run the following code for the installation. , (*3)

composer require znframework/package-authentication

Documentation

Click for documentation of your library. , (*4)

Example Usage

Basic level usage is shown below. , (*5)

<?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());
}

The Versions