nette/sandbox
最新稳定版本:v1.0.1
Composer 安装命令:
composer create-project nette/sandbox
包简介
README 文档
README
Example of user management.
- User login, registration and logout (
SignPresenter) - Command line registration (
bin/create-user.php) - Authentication using database table (
UserFacade) - Password hashing
- Presenter requiring authentication (
DashboardPresenter) using theRequireLoggedUsertrait - Rendering forms using Bootstrap CSS framework
- Automatic CSRF protection using a token when the user is logged in (
FormFactory) - Separation of form factories into independent classes (
SignInFormFactory,SignUpFormFactory) - Return to previous page after login (
SignPresenter::$backlink)
Installation
git clone https://github.com/nette-examples/user-authentication
cd user-authentication
composer install
Set the database access data in the config/local.neon file:
database: dsn: 'mysql:host=127.0.0.1;dbname=***' user: *** password: ***
And create a users table in the database by importing the users.mysql.sql file
The simplest way to get started is to start the built-in PHP server in the root directory of your project:
php -S localhost:8000 www/index.php
Then visit http://localhost:8000 in your browser to see the welcome page.
It requires PHP version 7.4 or newer.
统计信息
- 总下载量: 62.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2012-05-06