Getting started

For Kit Builders

Application kits

More than just libraries, Kits can provide software components to use or framework's code to use for your appluications, or complete web applications to integrate into your web site. To achieve this, Webappkit uses a full objet-oriented model. Every Kit is an instance of, or derived from the Webappkit class, which you get by the static method getkit :

// getting the "exemple" kit singleton instance $kit=&Webappkit::getkit('example');

Kit's functionalites are provided through kit instance methods, or its members methods. Kit's members are called Tools.

Kits library files are loaded since the first call to getkit, which always return the same instance for a given kit (singleton).

Application kits able to handle client requests usually have a specific class implementing the run method like this :

$blog=&Webappkit::getkit('blog_engine'); $blog->run();

See Tools.