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(11mo ago)187↓83.3%MITPHPPHP &gt;=7

Since May 23Pushed 11mo 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 today

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

29

—

LowBetter than 57% of packages

Maintenance51

Moderate activity, may be stable

Popularity12

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

351d ago

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

1.0.1PHP &gt;=7

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61498435?v=4)[Dragan](/maintainers/VaclavKlima)[@VaclavKlima](https://github.com/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

[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[tallstackui/tallstackui

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

725172.4k14](/packages/tallstackui-tallstackui)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[blade-ui-kit/blade-icons

A package to easily make use of icons in your Laravel Blade views.

2.5k42.5M402](/packages/blade-ui-kit-blade-icons)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M130](/packages/roots-acorn)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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