Skip to content
A HTTP-friendly framework of controllers for PHP5.
PHP HTML
Find file
Latest commit 8454e20 Apr 5, 2016 @lsolesen lsolesen Merge pull request #25 from troelskn/gh-20
duplicate content type handler for text/x-vcard - fixes gh-20
Failed to load latest commit information.
docs Updated link to downloads Jul 30, 2012
examples Adding composer integration and reworking tests Apr 3, 2016
lib/konstrukt duplicate content type handler for text/x-vcard - fixes gh-20 Apr 5, 2016
script Adding composer integration and reworking tests Apr 3, 2016
test
.gitignore Adding composer integration and reworking tests Apr 3, 2016
.travis.yml Adding composer integration and reworking tests Apr 3, 2016
LICENSE Renamed namespace from k2 -> k Feb 1, 2009
README.markdown Added Travis CI build status. Aug 15, 2012
UPGRADING Update UPGRADING Aug 28, 2014
composer.json Adding composer integration and reworking tests Apr 3, 2016
composer.lock Adding composer integration and reworking tests Apr 3, 2016

README.markdown

konstrukt.dk Build Status

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

Read the documentation

You can read the documentation on konstrukt.dk

Installing through PEAR

The easiest way to install Konstrukt, is through PEAR. In a console, type the following:

sudo pear channel-discover pearhub.org
sudo pear install pearhub/konstrukt

Creating a new project

You can create a new project by cloning the starterpack under /examples/:

Download the newest version of konstrukt from: http://github.com/troelskn/konstrukt/downloads. Then copy starterpack_default:

cp -R examples/starterpack_default /var/www/foo

Replace /var/www/foo with the location where you want your app to reside.

Something went wrong with that request. Please try again.