Download the PHP package webrouse/n-sandbox without Composer
On this page you can find all versions of the php package webrouse/n-sandbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webrouse/n-sandbox
More information about webrouse/n-sandbox
Files in webrouse/n-sandbox
Package n-sandbox
Short Description Extended nette/sandbox with integrated gulp, es6, nittro, sass, browsersync, ...
License BSD-3-Clause GPL-2.0 GPL-3.0
Homepage https://github.com/webrouse/n-sandbox
Informations about the package n-sandbox
n-sandbox
This is an extended version of nette/sandbox focused on fast development with modern PHP and JS tools.
Wiki explains how to use present technologies with Nette Framework.
This sandbox is currently based on Nette 2.4
due to incompatibility of some extensions with Nette 3
.
Requirements
Quick start
Install the gulp
command
Create a new project using composer
Install JavaScript dependencies using npm
Run serve
task and profit
Visit http://localhost:3000/checker
to check minimal requirements, if some issues, install the missing extensions.
Visit http://localhost:3000
in your browser to see the welcome page.
The serve
task:
- includes default and watch tasks
- checks coding standards for
php
,js
andscss
files - compiles
js
,scss
files and other assets - runs the PHP built-in webserver on
localhost:8000
using project php.ini - runs Browsersync server on
localhost:3000
that proxy requests to the PHP server - watches for changes and then check + recompile assets
You can append --silent
to suppress unnecessary output
You can append --fix
flag to automatically fix coding standards issues:
To one-shot assets check and compilation run the default
task:
For more information, see Tutorial or List of all tasks.
What's inside?
- Gulp task runner
- Cache busting of all assets with gulp-rev and n-asset-macro
- Rollup + Babel compile next generation ES6 scripts to browser-compatible JavaScript
- EsLint with Airbnb JS rules check scripts coding standards
- UglifyEs compresses scripts in production mode
- Nittro client-side framework for Nette
- Sass compiles scss stylesheets to css
- SassLint + Airbnb CSS rules check styles coding standards
- Autoprefixer adds css vendor prefixes according to your browserslist config
- Cssnano compresses css in production mode
- Source maps
- Browsersync for synchronised development and testing in multiple browsers and devices
- ECS checks nette/coding-standard in PHP files
- Localization with server-side and client-side support, only used messages are extracted to JavaScript locales
- Menu component extension
- Monolog extension for simple logging to various targets
- Git hooks mapped to gulp tasks
- SVG icons
-
Favicon and touch icons generation from SVG
Documentation
Wiki explains how to use present technologies and tools.
Contributing
Any improvements to the code or documentation are welcome.
The goal is to create a skeleton that allows comfortable development without affecting the application speed.
Todo
Create test for each Gulp task with shunit2.
License
Nette: New BSD License or GPL 2.0 or 3.0
All versions of n-sandbox with dependencies
nette/application Version ^2.4
nette/bootstrap Version ^2.4
nette/caching Version ^2.4
nette/database Version ^2.4
nette/di Version ^2.4
nette/finder Version ^2.4
nette/forms Version ^2.4
nette/http Version ^2.4
nette/mail Version ^2.4
nette/robot-loader Version ^3.0
nette/safe-stream Version ^2.3
nette/security Version ^2.4
nette/utils Version ^2.4
latte/latte Version ^2.4
tracy/tracy Version ^2.4
kdyby/translation Version ^2.4
webrouse/n-asset-macro Version ^1.1
nittro/nette-bridges Version ^2.0
carrooi/nette-menu Version ^2.1
kdyby/monolog Version ^1.3