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(1y ago)192↓87.9%MITPHPPHP &gt;=7

Since May 23Pushed 1y 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 1w 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

29

—

LowBetter than 57% of packages

Maintenance48

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

397d 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.3k268.2k89](/packages/moonshine-moonshine)[tallstackui/tallstackui

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

731189.9k16](/packages/tallstackui-tallstackui)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[illuminate/console

The Illuminate Console package.

13046.6M7.3k](/packages/illuminate-console)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5495.1k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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