joseki / sandbox
Nette Framework application skeleton
Requires
- php: >= 5.3.0
- janmarek/webloader: ~2.2
- joseki/error-presenter-extension: ~1.0
- joseki/forms: ~1.0
- joseki/leanmapper-extension: ~1.0
- joseki/webloader-filters: ~1.0
- kdyby/forms-replicator: @dev
- nette/nette: ~2.2
- nextras/datagrid: ~2.1
- nextras/forms: ~1.4
- robmorgan/phinx: ~0.3
Requires (Dev)
- nette/tester: ~1.0
This package is auto-updated.
Last update: 2024-12-05 20:46:09 UTC
README
Application skeleton for Nette Framework applications with many additional features:
- LeanMapper ORM included
- Query objects
- auto service registration based on simple Entity-table mapping in neon config
- closure tables
- Phinx database migration including initial script
- Package based directory structure
- separated neon config files for each extension (to clarify these config files)
- less -> css templates written in attribute-selector way in resources/design/
- example for simple testing mechanism using Nette/Tester in tests/
Install
using Composer (note that webroot is just a name of a directory where your project will be created. Feel free to change webroot to whatever you like)
composer create-project joseki/sandbox webroot
move to webroot directory
cd webroot
create config.local.neon and add valid credentials to a database layer
cp app/config/template/config.local.neon app/config/config.local.neon
vim app/config/config.local.neon
create SQL tables using Phinx migration tool
libs/composer/bin/phinx migrate
Packages name
In your IDE (PhpStorm, NetBeans or whatever you use), replace all occurencies of MyApplication with whatever is your project name namespace (e.g. Joseki). Also rename app/MyApplication as well (in my case to Joseki).
In this skeleton, I use composer to autoload my application scripts in app/ directory the same way as I do with dependecies stored in libs/ (vendor) directory so you need to call:
composer update
That's all folks!