2017 © Pedro Peláez
 

library sandbox

Nette Framework application skeleton

image

joseki/sandbox

Nette Framework application skeleton

  • Friday, October 2, 2015
  • by castamir
  • Repository
  • 2 Watchers
  • 1 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Sandbox

Application skeleton for Nette Framework applications with many additional features:, (*1)

  • 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), (*2)

composer create-project joseki/sandbox webroot

move to webroot directory, (*3)

cd webroot

create config.local.neon and add valid credentials to a database layer, (*4)

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, (*5)

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)., (*6)

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:, (*7)

composer update

That's all folks!, (*8)

The Versions