neutronstars / authentification
Authentification library for php
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/neutronstars/authentification
Requires
- php: >=7.4.0
This package is auto-updated.
Last update: 2025-10-16 22:41:09 UTC
README
<?php require_once __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; use NeutronStars\Authentification\User; $user = User::init('user', ['username', 'email']); //Check if your user is connected: if($user->isConnected()) { //Your code } //Connect your user: $user->connect([ 'username' => 'John Doe', 'email' => 'john.doe@email.com' ]); //Disconnected your user without destroy all data in session: $user->disconnect(); //Disconnected your user with the destroy all data in session: $user->disconnect(true);
Installation
composer require neutronstars/authentification
{
"require": {
"neutronstars/authentification": ">=1.0.0"
}
}