2017 © Pedro Peláez
 

library bootstrap

FormManager extension to create bootstrap like forms

image

form-manager/bootstrap

FormManager extension to create bootstrap like forms

  • Thursday, July 6, 2017
  • by oscarotero
  • Repository
  • 2 Watchers
  • 2 Stars
  • 302 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 7 Versions
  • 6 % Grown

The README.md

FormManager\Bootstrap

Created by Oscar Otero http://oscarotero.com oom@oscarotero.com, (*1)

Requirements:, (*2)

  • PHP 5.4
  • Composer or any PSR-4 autoloader

This is a extension of FormManager library to generate bootstrap forms easily, (*3)

Usage

use FormManager\Bootstrap;

$myForm = Bootstrap::form([
    'name' => Bootstrap::text()->label('Your name'),
    'email' => Bootstrap::email()->label('Your email')
]);

echo $myForm;

You can generate horizontal forms and inline forms:, (*4)

use FormManager\Bootstrap;

$myHorizontalForm = Bootstrap::formHorizontal($fields);
$myInlineForm = Bootstrap::formInline($fields);

Use set method to customize each field. The available properties:, (*5)

  • size: (sm|lg) To create small/large fields
  • addon-before: To insert an addon before the input
  • addon-after: To insert an addon after the input
  • help: To insert a help block before the input
use FormManager\Bootstrap;

$myForm = Bootstrap::form([
    'name' => Bootstrap::text()->label('Your name')->set('size', 'lg'),
    'email' => Bootstrap::email()->label('Your email')->set([
        'addon-before' => '@',
        'help' => 'Insert here your email'
    ])
]);

echo $myForm;

More information:, (*6)

The Versions

06/07 2017

dev-master

9999999-dev https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html

06/07 2017

v2.0.2

2.0.2.0 https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html

15/05 2015

v2.0.1

2.0.1.0 https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html

04/05 2015

v2.0

2.0.0.0 https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html

23/11 2014

v1.0.2

1.0.2.0 https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html

15/09 2014

v1.0.1

1.0.1.0 https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html

14/09 2014

v1.0.0

1.0.0.0 https://github.com/oscarotero/form-manager-bootstrap

FormManager extension to create bootstrap like forms

  Sources   Download

AGPL-3.0

The Requires

 

form bootstrap html