PHP code example of leafs / form

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

    

leafs / form example snippets




$data = [
  'name' => [
    'first' => 'Jane',
    'last' => 'Doe',
  ],
  'email' => '[email protected]',
  'password' => 'password1234',
];

$validated = form()->validate($data, [
  'name' => 'array()',
  'name.first' => '