The sandbox is a pre-packaged Nette Framework project, basic configured structure for your application.
- php: ^7.0
- etten/app: ^3.0
- etten/deployment: ^3.1
- etten/doctrine: ^4.7
- etten/migrations: ^3.2
- etten/symfony-events: ^1.1
- etten/utils: ^0.2
- kdyby/console: ^2.7
- kdyby/doctrine: ^3.3
- kdyby/events: ^3.1
- latte/latte: ~2.4.7
- nette/application: ~2.4.9
- nette/bootstrap: ~2.4.5
- nette/caching: ~2.5.6
- nette/di: ~2.4.9
- nette/finder: ~2.4.1
- nette/forms: ~2.4.6
- nette/http: ~2.4.7
- nette/mail: ~2.4.4
- nette/robot-loader: ~2.4.4
- nette/safe-stream: ^2.3
- nette/security: ~2.4.2
- nette/utils: ~2.5.1
- tracy/tracy: ~2.4.9
- etten/codestyle: ^2.0
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ~2.6.2
This package is auto-updated.
Last update: 2023-03-11 10:39:44 UTC
Based on official nette/sandbox.
Sandbox is a pre-packaged and pre-configured Nette Framework application that you can use as the skeleton for your new applications.
Nette is a popular tool for PHP web development. It is designed to be the most usable and friendliest as possible. It focuses on security and performance and is definitely one of the safest PHP frameworks.
The best way to install Sandbox is using Composer.
When you have Composer installed, run these commands and follow instructions:
composer create-project etten/sandbox my-app cd my-app php install.php
grunt-contrib-watch tasks (for automatic LESS, TypeScript compiling):
This can be done automatically by IDE - WebStorm, PHPStorm, see guide.
Create/update database schema:
php web/index.php orm:schema-tool:update
Create a User (username and password):
php web/index.php user:create
Navigate your browser to the
www directory and you will see a welcome page.
PHP 5.4 allows you run
php -S localhost:8888 -t www to start the web server and
http://localhost:8888 in your browser.
You can log-in as created user via
It is CRITICAL that all files and directories except
www are NOT accessible
directly via a web browser! Necessary file for Apache is included (
Make sure that is handled properly by your server!
Study them for deeper understanding.
- Nette framework
Application has built-in CLI support.
It's realized via Kdyby\Console (Nette Extension of Symfony\Console).
For list of each commands and options just run CLI:
php web/index.php -h
Via CLI you can for example:
- clean application caches (including Nette\DI and Latte)
- work with Doctrine DBAL and ORM
- run migrations
- deploy application (it should be launched by CI/CD service)
If you use PhpStorm IDE, you can operate with its built-in CLI tool.
It's very simple and you get autocomplete suggestions for all commands and their options!
Just go to
Settings - Tools - Command Line Tool Support, add new
Tool Based on Symfony Console and select
web/index.php of the application. You don't need remember all the commands now.
For more information see Symfony2 Command Line Tool Integration, Command Line Tools Based on Symfony Console (Doctrine, Laravel) in PhpStorm.
You can use included Docker environment.
docker-compose.yml according your needs.
docker-compose up. You'll reach the application via
If you want to run some PHP commands, login into PHP container as a non-root user:
# Login into Docker PHP terminal as a non-root user docker exec -it -u me $(basename `pwd`)_php_1 bash