PHPackages                             enriquejlicona/forms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. enriquejlicona/forms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

enriquejlicona/forms
====================

Base for builder

1.5.0(4y ago)0111MITPHPPHP &gt;=7.0

Since Oct 9Pushed 4y agoCompare

[ Source](https://github.com/enriquejliconal/forms)[ Packagist](https://packagist.org/packages/enriquejlicona/forms)[ RSS](/packages/enriquejlicona-forms/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (4)Versions (46)Used By (1)

[![Build Status](https://camo.githubusercontent.com/6b85627d2e992f097d12da8dca410e765d469236e1fd95aef06ca143e531908c/68747470733a2f2f7472617669732d63692e6f72672f676c68642f666f726d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/glhd/forms) [![Coverage Status](https://camo.githubusercontent.com/b3e81519286a1da350f5cedebc29e1e52c03d3399c30d6a349b79fbd00a15d80/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f676c68642f666f726d732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/glhd/forms?branch=master)

Galahad/Forms
=============

[](#galahadforms)

Build HTML forms with a fluent syntax.

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Remembering Old Input](#remembering-old-input)
- [Error Messages](#error-messages)
- [CSRF Protection](#csrf-protection)
- [Data Binding](#data-binding)

[](#installation)

Installation
------------

[](#installation)

You can install this package via Composer by running this command in your terminal in the root of your project:

```
composer require galahad/forms
```

### Laravel

[](#laravel)

> This package will be auto-discovered in Laravel 5.5.

[](#basic-usage)

Basic Usage
-----------

[](#basic-usage)

- [Getting Started](#getting-started)
- [Opening a Form](#opening-a-form)
- [Text and Password Fields](#text-and-password-fields)
- [Textareas](#textareas)
- [Checkboxes and Radio Buttons](#checkboxes-and-radio-buttons)
- [Selects](#selects)
- [Buttons](#buttons)
- [Hidden Inputs](#hidden-inputs)
- [Labels](#labels)
- [Setting Attributes](#setting-attributes)

[](#getting-started)

### Getting Started

[](#getting-started)

First, instantiate a FormBuilder...

```
$builder = new Galahad\Forms\FormBuilder;
```

Next, use the FormBuilder to build an element. For example:

```
//
