staark/user
Composer 安装命令:
composer require staark/user
包简介
PHP User Manage System v2
README 文档
README
Languages Utilites
- PHP (v 7.4)
- Bootstrap Framework (v5.2 latest)
- PDO (For Connection)
- Password Hash (PHP Hash)
- PHPMailer (PHP Library)
System Options Avaible
- Login
- Register
- Forgot Password
- Models
- ActiveRecords
- Validation on register
- User password change with email
Demo
Settings
import Model with ' use Staark\Support\Model\User; '
import configuration with ' require_once 'config.php'; '
Exemple
- Protected attr on model (not update in database with save() function):
- id
- password
- password_reset
- created_at
- `$user->func or $user->attr`
- `User::func`
// Check session user's
User::isGuest();
// Update user attributes in database
$user->last_name = 'Your Last Name';
$user->save();
// Using that you create a new user in database.
User::create([
'first_name' => 'John',
'last_name' => 'Doe',
'email' => 'youremail@exemple.com',
'password' => User::passHash('pass'),
]);
// Get errors of action page
$user->getErrors(); return bool|array
// Send Email
$user->sendEmail('email', [array options]); return bool
Configuration
Open file config.php and edit database and email server.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-29