PHP code example of se7enet / florms

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

    

se7enet / florms example snippets


Se7enet\Florms\FlormsServiceProvider::class,

'Florms' => Se7enet\Florms\FlormsFacade::class,

php artisan vendor:publish --provider="Se7enet\Florms\FlormsServiceProvider"

{!! Florms::open()->url('/url/to/route.php')->post() !!}

{!! Florms::open()->route('route.name', [$model->id], true)->post() !!}

{!! Florms::text()
    ->name('first_name')
    ->label('First Name') !!}

{!! Florms::select()
    ->name("selectname")
    ->options([1=>'One', 2=>'Two', 3=>'Three'])
    ->value(2)
    ->label('Label Goes Here') !!}

{!! Florms::checkbox()
    ->name('acknowledgement')
    ->value(1)
    ->label('I acknowledge this.') !!}

{!! Florms::number()
    ->name('quantity')
    ->id('quantityId')
    ->label('Quantity')
    ->data('toggle', 'something')
    ->rel('last')
    ->max(100)
    ->min(0)
    ->step(1)
    ->appendClass('another-class') !!}

{!! Florms::number([
    'name' => 'quantity',
    'id' => 'quantityId',
    'label' => 'Quantity',
    'data-toggle' => 'something',
    'rel' => 'last',
    'max' => 100,
    'min' => 0,
    'step' => 1,
    'append-class' => 'another-class',
]) !!}
php
    ->max(999.99)
    ->min(0)
    ->step(0.01)
    ->inputGroupPrepend('$')
    ->inputGroupAppend('.00') !!}

{!! Florms::close() !!}