System Architecture

Basically, site-p-former is a wrapper class for PHP Hypertext Preprocessor that allows you to create cloud-native multi-tenant information and control systems.

It's a template parser at its core, that can handle text- and binary formats.
 

Template Parser

"mpf"-tokens can do things like storing/retrieving session values, connecting to databases and filesystems, sending emails, retrieving information about server environment and much more.

You may use "mpf"-tokens anywhere in your templates, because they are all going to be eliminated before sending the response to a client.


Token Library

There are dozens of different tokens, so you may think it is almost like a whole scripting language by itself. It is not meant to be, we see it more as a configuration language.

Yes, there are quite a few standard tokens you may use, but if you want to make use of advanced features, you must implement your own tokens, programmed in PHP. It's actually pretty simple to do so.