PHPackages                             tu6ge/laravel-form-item - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tu6ge/laravel-form-item

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tu6ge/laravel-form-item
=======================

laravel form item

v0.1.2(5y ago)710510MITPHPPHP ^7.3 || ^7.4 || ^8

Since Nov 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tu6ge/laravel-form-item)[ Packagist](https://packagist.org/packages/tu6ge/laravel-form-item)[ RSS](/packages/tu6ge-laravel-form-item/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (6)Versions (6)Used By (0)

Laravel Form Item Component
===========================

[](#laravel-form-item-component)

[![Tests](https://github.com/tu6ge/laravel-form-item/workflows/Tests/badge.svg?branch=master)](https://github.com/tu6ge/laravel-form-item/)[![Coverage Status](https://camo.githubusercontent.com/6f442bfffe13af13ac49760b1db73a595e08f27a6e40642f58b8c6def2c18e86/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74753667652f6c61726176656c2d666f726d2d6974656d2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/tu6ge/laravel-form-item?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/cdd5d21a881e1c1e502c2e4fc06169b69a442d7509007e876ad81221b5abc426/68747470733a2f2f706f7365722e707567782e6f72672f74753667652f6c61726176656c2d666f726d2d6974656d2f76)](//packagist.org/packages/tu6ge/laravel-form-item)

[中文](./README_zh.md)

This is a laravel 7+ blade component.I can help you when your embedding form item in view file. I haved many frequently-used form item. ex: input, textarea,number input,radio,select, checkbox,datepicker,timepicker,slider,switche and cascade selector.

You may include any one form item in your blade view file , when you need it. If you submit your form, this form item value can be submited to `action` path with other form data.

You also may import you old value to one form item in edit form page. If you are not modification it, and submit form. this value can remain unchanged.

Example
-------

[](#example)

Let's take the radio as an example to introduce the following. first, we need to construct the option data in the PHP file:

```
Route::get('demo', function() {
    return view('demo-view', [
        'radio1_option' => [
            [
                'value' => 11,
                'text' => 'Watermelon'
            ],
            [
                'value' => 22,
                'text'  => 'Apple'
            ],
            [
                'value' => 23,
                'text'  => 'Banana',
            ]
        ],
    ]);
});
```

In blade file, this have two cases, add data or edit data.Let's introduce them separately.

### Add

[](#add)

```

    @foreach($radio1_option as $item)
         {{$item['text']}}
    @endforeach

```

### Edit

[](#edit)

```

    @foreach($radio1_option as $item)
         {{$item['text']}}
    @endforeach

```

Document
--------

[](#document)

See [docs](https://tu6ge.github.io/laravel-form-item/en)

Test
----

[](#test)

- run all test case

```
composer test

```

- only run unit test

```
composer test-unit

```

- only run browser test (dusk)

```
composer test-browser

```

TODO
----

[](#todo)

1. I plan to use the push mode of blade to insert JS and CSS files
2. element UI i18n affects `date-picker`.
3. Using blade template engine outside of laravel -- one's energy is limited, and the community is expected to give test cases
4. If the problem is known, select multiple buttons, return to the page after submitting, and submit the data again，[issue](https://github.com/ElemeFE/element/issues/20468)
5. If there is no default value for select, the first value is not selected by default.
6. date picker is not available.
7. slider range select.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Every ~6 days

Total

4

Last Release

2022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96c9b3b5c4300583d0c78a813861abf9ad3d97a26607464f481054a58fbe4b7e?d=identicon)[tu6ge](/maintainers/tu6ge)

---

Top Contributors

[![tu6ge](https://avatars.githubusercontent.com/u/4115242?v=4)](https://github.com/tu6ge "tu6ge (144 commits)")

---

Tags

blade-componentscomposer-packageelement-uilaravellaravel-componentslaravel-package

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[fancyguy/webroot-installer

A composer installer for libraries that live in an application webroot.

1311.3M15](/packages/fancyguy-webroot-installer)[abordage/nova-html-card

A Laravel Nova card that displays any html content, e.g. lists, notifications, small custom reports

12235.6k](/packages/abordage-nova-html-card)

PHPackages © 2026

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