PHP code example of apility / forms

1. Go to this page and download the library: Download apility/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/ */

    

apility / forms example snippets


use Apility\Forms\Form;
use Apility\Forms\Field;

$form = Form::withFields(
    Field::text('name')
        ->withLabel('Your name')
        ->withPlaceholder('Your name here')
        ->withAutocompletion('full-name')
        ->e to the terms and conditions')
        ->
html
<form
    method="POST"
    action="{{ route('form.submit') }}"
>
    @csrf
    <x-forms-fields :fields="$form->getFormFields()" />
    <button type="submit">
        Submit
    </button>
</form>