PHP code example of bjnstnkvc / form-components

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

    

bjnstnkvc / form-components example snippets


$options = ['Option A', 'Option B'];

$options = [
    1 => 'Option A', 
    2 => 'Option B'
];

return view('welcome', [
    'users' => User::all();
]);
form_components.php
form_components.php
blade
<x-form::password name="password" placeholder="Password placeholder" />
blade
<x-form::time name="time" />
blade
<x-form::date-time name="date & time" />
blade
<x-form::file name="file" placeholder="File placeholder" />
blade
<x-form::checkbox name="checkbox" checked="{{ 2 + 2 == 4 }}" />