PHP code example of enjoys / forms
1. Go to this page and download the library: Download enjoys/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/ */
enjoys / forms example snippets
use Enjoys\Forms\Form;
$form = new Form();
//or
$form = new Form('get', 'action.php');
use Enjoys\Forms\Form;
use Enjoys\Forms\Elements;
$form = new Form();
$form->text('name', 'label');
//or
$textElement = new Elements\Text('name', 'label');
$form->addElement($textElement);