sinetinformatica / php-joget-form-json
PHP Joget JSON Form Creator
Installs: 1 302
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: 9.*
This package is auto-updated.
Last update: 2025-05-21 17:51:29 UTC
README
Indice
Contesto
Questa libreria permette di creare una form in PHP con una struttura definita ed avere in output la stessa in JSON.
La struttura di un oggetto Form per Joget e' del seguente tipo:
Form -> Section (*) -> Column (*) -> FormElement (*) ---|-> Validator
|-> Option (?)(*)
(?) = Opzionale |-> OptionBinder (?)
(*) = da 1 a N
/-------------------------FORM--------------------------\
| /--------------------SECTION1-------------------\ |
| | /---COLS1----|----COLS2----|----COLS3---\ | |
| | | ELEMENT1 | ELEMENT1 | ELEMENT1 | | |
| | | ELEMENT2 | | ELEMENT2 | | |
| | | | | ELEMENT3 | | |
| | \---------------------------------------/ | |
| \-----------------------------------------------/ |
| |
| ---------------------SECTION2-------------------\ |
| | ------------------COLS1-----------------\ | |
| | | ELEMENT1 | | |
| | | /--ELEMENT2--\ | | |
| | | |-OPT1 -OPT2 | | | |
| | | |-OPT3 -OPT4 | | | |
| | | \------------/ | | |
| | \---------------------------------------/ | |
| \-----------------------------------------------/ |
\-------------------------------------------------------/
Requisiti
- PHP >= 5.6
Installazione
Il progetto può essere importato come dipendenza di composer:
composer require sinetinformatica/php-joget-form-json
oppure clonandolo nel seguente modo:
your_project_folder
|___sdk_repo_folder
a questo punto lanciare all'interno della cartella sdk_repo_folder
il comando
composer install --no-dev
Uso
Elementi
Gli elementi supportati sono i seguenti
- Elementi Contenitori
- Form
- Sezione
- Colonna
- Elementi Base
- FormElement
- JogetRadio
- SelectBox
- Checkbox
- Textfield
- Textarea
- Datapicker
- HiddenField
- Elementi Custom
- Empty
- AlfrescoButton
- Validatori
- JogetValidator
- JogetValidatorProperties
- Opzioni
- Option
- OptionBinder
Esempio
Licenza
Dettaglio Licenza
La licenza per questo repository è una Apache License 2.0
.
All'interno del file LICENSE sono presenti le informazioni
specifiche.
Contributori
Qui c'è una lista di contributori. Grazie per essere partecipi nel miglioramento del progetto giorno dopo giorno!