ttek/tk-form

Tk Lib: Form render with DOM and PHP templates

Installs: 2 115

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ttek/tk-form

8.0.46 2025-10-09 00:00 UTC

This package is auto-updated.

Last update: 2025-10-09 21:37:49 UTC


README

Project: ttek/tk-form Web: http://www.tropotek.com/
Authors: Michael Mifsud http://www.tropotek.com/

A Form lib for the Tk Framework

Contents

Installation

Available on Packagist (ttek/tk-form) and as such installable via Composer.

composer require ttek/tk-form

Or add the following to your composer.json file:

{
  "require": {
    "ttek/tk-form": "~8.0.0"
  }
}

Form State Chart

   Create Form
       |
       |
 Add Form Fields
       |
       |
 Load Field Values
       |
       |
 if (isSubmitted) ----[YES]---------------
       |                                 |
       |                                 |
      [No]                   Load Request Into Field values
       |                                 |
       |                                 |
       |                         Validate Field Data
       |                                 |
       |                                 |
       | <----------[YES]-------  if (hasErrors)
       |                                 |
       |                                 |
       |                                [No]
       |                                 |
       |                                 |
  Render Form                   Save Data To Storage    
                                         | 
                                         |
                               Redirect To Success Page