PHP code example of purplespider / silverstripe-bootstrap-form-templates

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

    

purplespider / silverstripe-bootstrap-form-templates example snippets


FieldGroup::create(
    TextField::create('FirstName', 'First Name')->addExtraClass('col'),
    TextField::create('Surname', 'Last Name')->addExtraClass('col'),
)->addExtraClass('row');