ttek / tk-form
Tk Lib: Form render with DOM and PHP templates
8.0.52
2025-12-22 00:00 UTC
Requires
- php: ^8.3
- ext-dom: *
- ttek/tk-domtemplate: ^8.0
- ttek/tk-framework: ^8.0
This package is auto-updated.
Last update: 2026-05-22 03:18:37 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