namboy94/welwitschi-auth
Composer 安装命令:
composer require namboy94/welwitschi-auth
包简介
Authentication Library for PHP 7.1+
关键字:
README 文档
README
| master | develop |
|---|---|
Welwitschi-Auth is an authentication library for use in websites written in PHP. It offers an object-oriented abstraction over rows stored in a MySQL/MariaDB database.
Accounts created by this library all receive a unique ID in the database. Usernames and email addresses are also unique, it is not possible to have duplicate entries.
Upon creation of an account, the account will need to be confirmed before being able to log in or generate API keys.
A user is able to log in with exactly one device at a time, as well as have one active API token.
Security
Passwords, API Tokens and Login Tokens are all stored salted and hashed
using the builtin password_hash() function. The algorithm used to hash the
password is PASSWORD_BCRYPT.
All SQL Statements with variable values are properly escaped to avoid SQL injection.
Usernames and Email addresses are sanitized using html htmlspecialchars to
avoid Cross-Site-Scripting attacks (XSS).
Installation
You can use welwitschi-auth by adding the requirement
"namboy94/welwitschi-auth": "dev-master"
to your composer.json file an then running composer install. You can then
find the classes in vendor/namboy94/welwitschi-auth/src. Thanks to
autoloader, you should be able to easily access the classes from cheetah-bets.
Documentation
All classes and methods are documented using DocBlock comments. Additional Documentation can be found in doc.
Further Information
统计信息
- 总下载量: 228
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2017-07-09
