rest-full / authentication
It is the authentication used at the time and after logging in.
1.0.0
2024-01-27 08:30 UTC
Requires
- php: >=7.3
- chillerlan/php-qrcode: 4.*
- pragmarx/random: v0.*
- rest-full/container: 1.*
- rest-full/error: 1.*
- rest-full/event: 1.*
This package is auto-updated.
Last update: 2024-04-27 12:38:37 UTC
README
About Rest-full Authentication
Rest-full Authentication is a small part of the Rest-Full framework.
You can find the application at: rest-full/app and you can also see the framework skeleton at: rest-full/rest-full.
Installation
- Download Composer or update
composer self-update
. - Run
php composer.phar require rest-full/authentication
or composer installed globallycompser require rest-full/authentication
or composer.json"rest-full/autentication": "1.0.0"
and install or update.
Usage
This Session
<?php
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__.'/../config/pathServer.php';
use Restfull\Authentication\Auth;
$auth = new Auth();
$auth->write('test',['test1'=>'aprovado','test2'=>'reprovado']);
print_r($auth->getsession('test'));
This Two Factor
<?php
require __DIR__ . '/vendor/autoload.php';
use Restfull\Authentication\Auth;
use Restfull\Authentication\TwoSteps;
$auth = new Auth();
$twofactor = new TwoSteps($auth);
echo $twofactor->qrcodeValid()->getQrcode();
License
The rest-full framework is open-sourced software licensed under the MIT license.