PHPackages                             ttek/tk-form - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. ttek/tk-form

ActiveLibrary[Templating &amp; Views](/categories/templating)

ttek/tk-form
============

Tk Lib: Form render with DOM and PHP templates

8.0.52(6mo ago)02.3k2MITPHPPHP ^8.3

Since Nov 17Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/tropotek/tk-form)[ Packagist](https://packagist.org/packages/ttek/tk-form)[ RSS](/packages/ttek-tk-form/feed)WikiDiscussions 8.0 Synced 3w ago

READMEChangelogDependencies (2)Versions (220)Used By (2)

Tk Form
=======

[](#tk-form)

**Project:** [ttek/tk-form](http://packagist.org/packages/ttek/tk-form)**Web:**
**Authors:** Michael Mifsud

A Form lib for the Tk Framework

Contents
--------

[](#contents)

- [Installation](#installation)
- [Introduction](#introduction)

Installation
------------

[](#installation)

Available on Packagist ([ttek/tk-form](http://packagist.org/packages/ttek/tk-form)) and as such installable via [Composer](http://getcomposer.org/).

```
composer require ttek/tk-form
```

Or add the following to your composer.json file:

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

### Form State Chart

[](#form-state-chart)

```
   Create Form
       |
       |
 Add Form Fields
       |
       |
 Load Field Values
       |
       |
 if (isSubmitted) ----[YES]---------------
       |                                 |
       |                                 |
      [No]                   Load Request Into Field values
       |                                 |
       |                                 |
       |                         Validate Field Data
       |                                 |
       |                                 |
       |
