Download the PHP package nette/sandbox without Composer
On this page you can find all versions of the php package nette/sandbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sandbox
User Authentication (Nette example)
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 theRequireLoggedUser
trait - 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
Make directories data/
, temp/
and log/
writable.
By default, SQLite is used as the database which is located in the data/db.sqlite
file. If you would like to switch to a different database, configure access in the config/local.neon
file:
And then create the users
table using SQL statements in the data/mysql.sql file.
The simplest way to get started is to start the built-in PHP server in the root directory of your project:
Then visit http://localhost:8000
in your browser to see the welcome page.
It requires PHP version 8.1 or newer.
All versions of sandbox with dependencies
nette/application Version ^3.1
nette/bootstrap Version ^3.1
nette/database Version ^3.1
nette/di Version ^3.0
nette/forms Version ^3.1
nette/http Version ^3.1
nette/robot-loader Version ^3.3
nette/security Version ^3.1
nette/utils Version ^3.2
latte/latte Version ^2.11 || ^3.0
tracy/tracy Version ^2.8