PHP code example of black-bits / formbuilder

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

    

black-bits / formbuilder example snippets


<div class="col-md-6">

        {{ Formbuilder::title('Edit User', 'h2') }}

        {{ Formbuilder::open(route('form1.post'), 'post') }}

            {{ csrf_field() }}

            {{ Formbuilder::text(
                "full_name",
                old('full_name', $user->get('full_name')),
                "Full Name",
                "Max Mustermann")
            }}

            {{ Formbuilder::text(
                "username",
                old('username', $user->get('username')),
                "Username",
                "mmustermann")
            }}

            {{ Formbuilder::email(
                "email",
                old('email', $user->get('email')),
                "Email",
                "[email protected]")
            }}

            {{ Formbuilder::password(
                "password",
                '',
                "Password",
                "your-secret-password")
            }}

            {{ Formbuilder::password(
                "password_repeat",
                '',
                "Password Repeat",
                "your-secret-password")
            }}

            {{ Formbuilder::buttons(
                route('home'))
            }}

        {{ Formbuilder::close() }}

    </div>