Application flow

PHsPeed is a RAD tool in which you can create your forms and generate your applications. To design your form you will use a palette containing the available components you can put on your form. Because the framework Bootstrap is used, the form will not be completely 'wysiwyg'. Depending on the platform your application will run on the forms will resize themselves to comply to your definition(s). All is fully responsive unless you tell PHsPeed to generate otherwise. The form presented in the designer is a conceptual presentation, more a 'rough drawing'.

The generation process will then start to generate php programs, css files, html files and js files to build your application. So if you have a 'main.php' defined, PHsPeed will generate a main.php, main.html, main.css and a main.js. There is no html in your php scripts. Design and program are completely separated from each other.

PHsPeed will use a generic application flow for each and every php module (form) you generate. There is no html anywhere in your php source code. After you have designed your forms and applied your own code in the available events, PHsPeed will generate all the necessary files.


First PHsPeed will setup all the necessary requirements to connect to pdo, to include your javascript modules (i.e. bootstrap) and stylesheets (css).

application class

Then the design page will be used to generate the php application class, containing references for all the selected components. For each component a separate php file is generated containing all the component depending source code. These components are derived from the defined components in the runtime library.

create object of type application

Then the php application will be instantiated by a global variable which is always $app. This global variable is the glue to access the other components from anywhere, i.e. in your own events.

handle process flow

Depending on the state of the program there are three options:

  • initialize the form
  • handle form input
  • handle ajax request


  1. start session
  2. setup pdo connection strings
  3. setup css includes
  4. setup js includes
  5. create html page class
    • create all allocated components (perform constructors)
    • assign components to the $app class
    • Uctivate the components
    • setup ajax links where applicable
  6. if not inititialized then initialize (return html)
  7. if initialized then handle process input (return html)
  8. if ajax request then handle the ajax request (return json)
  9. finalize