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

ActiveLibrary

i80586/laravel-form-fields
==========================

Laravel form fields generator - for admin panels

v2.1.2(2mo ago)41.1k1MITPHPPHP &gt;=8.3CI passing

Since Jul 8Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (22)Used By (0)

laravel-form-fields
===================

[](#laravel-form-fields)

A fluent form field generator for Laravel

[![Latest Version](https://camo.githubusercontent.com/5fef4d6ca5563387f13050104d4653628ded9ee4b5d6f662d3f5228a291c6b95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6938303538362f6c61726176656c2d666f726d2d6669656c64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/i80586/laravel-form-fields)[![Build Status](https://camo.githubusercontent.com/7581b19f89c98ba1f1eaee556dadb3198b48f17a2a54f62581cceb35441af401/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6938303538362f6c61726176656c2d666f726d2d6669656c64732f7068702d63692e796d6c3f6c6162656c3d63692532306275696c64267374796c653d666c61742d737175617265)](https://github.com/i80586/laravel-form-fields/actions?query=workflow%3ACI)[![Downloads](https://camo.githubusercontent.com/b5fb0d3af84e3b75847574b0a7d2e1376f1e1c298156deb5c25fcd976b16dec5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6938303538362f6c61726176656c2d666f726d2d6669656c64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/i80586/laravel-form-fields)

---

🚀 About
-------

[](#-about)

`laravel-form-fields` provides a **fluent, expressive API** for generating form fields in Laravel.

Version 2 introduces a **builder-style syntax**, replacing array-based configuration with readable method chaining.

---

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 8.3
- Laravel &gt;= 10

📦 Installation
--------------

[](#-installation)

```
composer require i80586/laravel-form-fields
```

Basic usage
-----------

[](#basic-usage)

```
{!! form()->input('name') !!}
```

Output:

```
Name

```

### Setting default value:

[](#setting-default-value)

```
{!! form()->input('name', 'John') !!}
```

This will output:

```
Name

```

### Change the text of the default label

[](#change-the-text-of-the-default-label)

```
{!! form()->input('name')->label('Your name') !!}
```

This will output:

```
Your name

```

### Multiple CSS classes

[](#multiple-css-classes)

You can pass multiple CSS classes in a single call:

```
{!! form()
    ->input('name', 'John')
    ->label(false)
    ->required()
    ->class('form-control', 'name-select')
!!}
```

or

```
{!! form()
    ->input('name', 'John')
    ->label(false)
    ->required()
    ->class(['form-control', 'name-select'])
!!}
```

This will output:

```

```

### Select

[](#select)

```
{!! form()->select('city', 1, [1 => 'Baku'], 'Choose city') !!}
```

This will output:

```
City

Choose city
Baku

```

### Old input support

[](#old-input-support)

Form fields automatically use Laravel `old()` values after validation errors.

You do not need to manually call old(); the previous value will be inserted automatically.

Use the following variant:

```
{!! form()->input('email', 'some@email.com') !!}
```

instead of:

```
❌

{!! form()->input('email', old('email', 'some@email.com')) !!}
```

---

Philosophy
----------

[](#philosophy)

- Fluent API
- Explicit over magic
- Laravel-native behavior
- Clean and predictable HTML output

License
-------

[](#license)

MIT License

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 87% 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.

###  Release Activity

Cadence

Every ~66 days

Recently: every ~4 days

Total

21

Last Release

72d ago

Major Versions

v1.1.5 → v2.0.02026-02-11

PHP version history (3 changes)v1.0PHP &gt;=7.0

v1.0.2PHP &gt;=8.0

v2.0.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/9024308100ab8ee1957d123926897d01e68eb25ef8b0c108d918f094be716ddb?d=identicon)[i80586](/maintainers/i80586)

---

Top Contributors

[![i80586](https://avatars.githubusercontent.com/u/3355250?v=4)](https://github.com/i80586 "i80586 (47 commits)")[![num8er](https://avatars.githubusercontent.com/u/603434?v=4)](https://github.com/num8er "num8er (7 commits)")

---

Tags

attributesformhtmllaravellaravelhtmlform

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravie/html

HTML and Form Builders for the Laravel Framework

36184.6k4](/packages/laravie-html)[orchestra/html

HTML Component for Orchestra Platform

40112.6k2](/packages/orchestra-html)[laravelbook/laravel4-powerpack

Port of Laravel 3's HTML, Form and Str classes

833.8k](/packages/laravelbook-laravel4-powerpack)[okipa/laravel-form-components

Ready-to-use and customizable form components.

198.0k1](/packages/okipa-laravel-form-components)[tomjamon/laravel-custom-html

Custom HTML generator for Laravel (Based on LaravelCollective HTML)

1018.6k](/packages/tomjamon-laravel-custom-html)[janvince/smallcontactform

Simple but flexible multi language contact form builder with custom fields, validation and passive antispam

307.4k](/packages/janvince-smallcontactform)

PHPackages © 2026

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