konstrukt.dk
About
Konstrukt is a minimalistic framework which provides a foundation on which to build rather than a boxed solution to all problems. It focuses on the controller layer, and tries to encourage the developer to deal directly with the HTTP protocol instead of abstracting it away. Konstrukt uses a hierarchical controller pattern, which provides a greater level of flexibility than the popular routed front controller frameworks.
Key Aspects
- Controllers are resources
- URI-to-controller-mapping gives your application a logical structure
- Routing based on logic rather than rules
- Nested controllers supports composite view rendering
Design Goals
- Embrace HTTP rather than hide it
- Enable the programmer, rather than automating
- Favour aggregation over code-generation or config-files
- Encourage encapsulation, and deter use of global scope
- Limit focus to the controller layer
Getting Started
Installing through PEAR
The easiest way to install Konstrukt, is through PEAR. In a console, type the following:
sudo pear install http://konstrukt.googlecode.com/files/konstrukt-2.1.1.tgz
Creating a new project
You can create a new project by cloning the starterpack under /examples/:
svn export http://konstrukt.googlecode.com/svn/tags/2.1.1/examples/starterpack_default myapp
Replace myapp with the name of your app. This will create a new directory with a fresh project in.