PHPackages                             dragan/form-components - 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. [Templating &amp; Views](/categories/templating)
4. /
5. dragan/form-components

ActiveLibrary[Templating &amp; Views](/categories/templating)

dragan/form-components
======================

Laravel x-blade form components for easy usage

1.0.2(10mo ago)173↓33.3%MITPHPPHP &gt;=7

Since May 23Pushed 9mo agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Form Components
===============

[](#form-components)

A PHP library for managing and rendering form components.

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

[](#installation)

Install the package using Composer:

```
composer require dragan/form-components
```

Features
--------

[](#features)

- Easy-to-use form components for Laravel applications.
- Supports various form fields such as text, email, password, textarea, select, checkbox, radio, and file input.
- Automatic handling of old input values.
- Supports form model binding.
- Customizable attributes for each form field.

Usage
-----

[](#usage)

### Form opening and closing

[](#form-opening-and-closing)

The `form::open` component is used to create a form. It accepts various attributes such as `method`, `action`, and `enctype`.

```

```

#### Form model

[](#form-model)

The `form::model` component can also be used with a model. This allows you to bind the form fields to the model's attributes. You can provide array, object, or collection data to the form.

```

```

### Form fields

[](#form-fields)

The library provides various form fields such as text, email, password, textarea, select, checkbox, radio, and file input. Each field can be customized with attributes like `name`, `label`, `value`, `placeholder`, and more.

#### Text input

[](#text-input)

```

```

#### Email input

[](#email-input)

```

```

#### Password input

[](#password-input)

```

```

#### Textarea

[](#textarea)

```

```

#### Select

[](#select)

```

```

#### Checkbox

[](#checkbox)

```

```

### Old input values

[](#old-input-values)

The library automatically handles old input values. If the form is submitted and validation fails, the old input values will be repopulated in the form fields. This is done using the `old()` helper function in Laravel.

Contributing
------------

[](#contributing)

If you would like to contribute to this library, please fork the repository and submit a pull request. We welcome contributions of all kinds, including bug fixes, new features, and documentation improvements.

License
-------

[](#license)

This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

```

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance56

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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 ~27 days

Total

3

Last Release

306d ago

PHP version history (2 changes)1.0.0PHP &gt;=8

1.0.1PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/54275e2b5be0263cdf80a62cf2533175e31517482c25191a8db4376338c3e67a?d=identicon)[VaclavKlima](/maintainers/VaclavKlima)

---

Top Contributors

[![VaclavKlima](https://avatars.githubusercontent.com/u/61498435?v=4)](https://github.com/VaclavKlima "VaclavKlima (4 commits)")[![Kogol1](https://avatars.githubusercontent.com/u/38778603?v=4)](https://github.com/Kogol1 "Kogol1 (1 commits)")

### Embed Badge

![Health badge](/badges/dragan-form-components/health.svg)

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

###  Alternatives

[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)

PHPackages © 2026

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