https://github.com/itsjustmechris/liquidauth
Liquid auth is a light weight user authentication system that I hope to build into something more, eventually.
https://github.com/itsjustmechris/liquidauth
auth php php-user-auth phpuserauth user user-auth
Last synced: about 1 month ago
JSON representation
Liquid auth is a light weight user authentication system that I hope to build into something more, eventually.
- Host: GitHub
- URL: https://github.com/itsjustmechris/liquidauth
- Owner: ItsJustMeChris
- Created: 2018-01-16T17:42:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T01:08:56.000Z (over 8 years ago)
- Last Synced: 2025-08-23T00:06:36.433Z (9 months ago)
- Topics: auth, php, php-user-auth, phpuserauth, user, user-auth
- Language: HTML
- Size: 27.3 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Liquid Auth**
----------
Liquid Auth is an easy to use object oriented PHP user authentication.
Liquid Auth offers secure features, and a fast to implement user authentication experience.
----------
Current Usage:
require_once __DIR__ . '/core/core.php';
Post request to: https://localhost/users/login.php with parameters
username=&password=
Post request to: https://localhost/users/register.php with parameters
username=&password=&email=
Post request to: https://localhost/users/logout.php
----------
User Advanced Usage
require_once __DIR__ . '/../users/users_class.php';
$users = new Users;
User Class Functions:
$users->loggedIn();
Returns boolean value if user is currently logged in or not.
$users->logOut();
Void immediately destroys the users session, logging them out.
$users->login(string $username, string $password);
Void logs the user in if the username and password match.
$users->register(string $username, string $email, string $password);
Void registers a new user if a user does not exist with the given username or email.
----------
Database Advanced Usage
require_once __DIR__ . '/../database/database_class.php';
$db = new Database;
Database Class Functions:
$db->query(string $query);
Returns query results.
$db->escape(string $string);
Returns escaped string using $mysqli->escape_string
----------
TODO
Automate installation.
Revive config file for database login and such.
More features, backend admin panel?
Improve session security
-Session Keys
-CSRF Tokens
-Cookies in the future