1. Go to this page and download the library: Download livecms/forms library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
Forms::create([...])
->setComponents([...])
->addGlobalProperties([
'landscape' => ['image', 'cover'],
])
->setName('form1');
// the result all of defined components will get what you write in key of the array
// example for : 'data-image:landscape' => ['image', 'cover']
// the result :
/**
* <input type="file" name="image" data-image="landscape" />
* <input type="file" name="cover" data-image="landscape" />
*/