academy01 / auth-token
authentication manager system for php
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/academy01/auth-token
Requires
- php: >=7.3
 
This package is auto-updated.
Last update: 2025-10-16 17:59:52 UTC
README
Simple Authentication Token Manager System.
Installation
just include AuthToken.php into your document.
and edit $domain and $salt
include_once "AuthToken.php";
Usage
Generate Token:
- you can pass the username to this method (
optional) - If you have already created a session called 
username, theusernamewill be set automatically and does not need to be set separately. 
AuthToken::generate();
Check Token:
- You must use a username if you used it to Generate a token.
 - this method returns 
trueorfalse 
AuthToken::check();
Delete Token:
AuthToken::delete();