PHPackages                             vaneves/laravel-form - 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. vaneves/laravel-form

ActiveLibrary

vaneves/laravel-form
====================

HTML Helper for Laravel Framework

317PHP

Since Dec 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vaneves/laravel-form)[ Packagist](https://packagist.org/packages/vaneves/laravel-form)[ RSS](/packages/vaneves-laravel-form/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Form
============

[](#laravel-form)

Installing with Composer
------------------------

[](#installing-with-composer)

```
composer require vaneves/laravel-form

```

### Configuration

[](#configuration)

Add the `Form` facade to the `aliases` array in `config/app.php`:

```
'aliases' => [
    //...
    'Form' => Vaneves\Laravel\Form\Form::class,
]
```

Usage
-----

[](#usage)

### Basic

[](#basic)

```
{!! Form::open('register') !!}
  {!! Form::text('Your name', 'name') !!}
  {!! Form::email('Email', 'email') !!}
  {!! Form::password('Password', 'password') !!}
  {!! Form::reset('Clear')->warning() !!}
  {!! Form::submit('Save')->primary() !!}
{!! Form::close() !!}
```

### Forms Methods

[](#forms-methods)

#### open(\[string $action\])

[](#openstring-action)

#### close()

[](#close)

#### action($path)

[](#actionpath)

#### method($name)

[](#methodname)

- get()
- post()
- put()
- patch()
- delete()

#### horizontal(\[array $sizes\])

[](#horizontalarray-sizes)

#### inline()

[](#inline)

#### required()

[](#required)

#### placeholder()

[](#placeholder)

#### hideLabel()

[](#hidelabel)

#### lg()

[](#lg)

#### sm()

[](#sm)

### Fields Types

[](#fields-types)

### Fields Methods

[](#fields-methods)

#### required()

[](#required-1)

Add attribute `required` in field.

#### optional()

[](#optional)

Remove attribute `required` from field.

#### lg()

[](#lg-1)

Add class `input-lg` in field.

#### sm()

[](#sm-1)

Add class `input-sm` in field.

#### attr(string $name \[, string $value\])

[](#attrstring-name--string-value)

Add an attribute with `data` in element. Example:

```
{!! Form::text('Your Name', 'name')->attr('my-prop', 'value') !!}
```

Output:

```

  Your Name

```

#### removeAttr(string $name)

[](#removeattrstring-name)

Remove an attribute from element.

#### data(string $name \[, string $value\])

[](#datastring-name--string-value)

Add an attribute with `data` in element. Example:

```
{!! Form::text('Your Name', 'name')->data('my-prop', 'value') !!}
```

Output:

```

  Your Name

```

#### addClass(string $name)

[](#addclassstring-name)

Add an class in element. Example:

```
{!! Form::text('Your Name', 'name')->addClass('material-design') !!}
```

Output:

```

  Your Name

```

#### removeClass(string $name)

[](#removeclassstring-name)

Remove class from element.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/78dd10e51f9ab3b0d703a4f61c9bd1415deb74b6401a3468b221e9f5f73fc990?d=identicon)[vaneves](/maintainers/vaneves)

---

Top Contributors

[![vaneves](https://avatars.githubusercontent.com/u/146581?v=4)](https://github.com/vaneves "vaneves (5 commits)")

---

Tags

bootstrap3laravel-form

### Embed Badge

![Health badge](/badges/vaneves-laravel-form/health.svg)

```
[![Health](https://phpackages.com/badges/vaneves-laravel-form/health.svg)](https://phpackages.com/packages/vaneves-laravel-form)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
