PHPackages                             plum/form - 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. plum/form

ActiveLibrary

plum/form
=========

:description

1.1.2(5y ago)1753MITPHP

Since Apr 1Pushed 5y agoCompare

[ Source](https://github.com/mannv/form)[ Packagist](https://packagist.org/packages/plum/form)[ Docs](https://github.com/mannv/form)[ RSS](/packages/plum-form/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (4)Versions (13)Used By (0)

Form
====

[](#form)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c89e75a9032d7fefcedd32825d9c214deea17adefeb652ce07f4071d00b43802/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706c756d2f666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/plum/form)[![Total Downloads](https://camo.githubusercontent.com/81a1d606f692e7e0a2352be16a148f0a157fd39e40082b6d28cd2db7c2fdc031/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706c756d2f666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/plum/form)[![Build Status](https://camo.githubusercontent.com/d3e997490f1b74d05cf6ec0c59eb52fb794e93d1150a6374f13684d8f03550f7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f706c756d2f666f726d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/plum/form)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

1. Via Composer

```
$ composer require plum/form
```

2. mở file `layout` thêm stack vào cuối trang để tự động đẩy code validate js vào

```
    @stack('scripts')

```

Tham khảo:

3. cài đặt validateJS

Usage
-----

[](#usage)

in blade template

```
{!! Pform::open(['url' => route('bt.store'), 'id' => 'form-demo'], \App\Http\Requests\DemoRequest::class) !!}
    {!! Pform::text('name', __('Your name')) !!}
    {!! Pform::email('email', __('Your email')) !!}
    {!! Pform::tel('phone_number', __('Your phone')) !!}
    {!! Pform::url('url', __('Your Site')) !!}
    {!! Pform::number('point', __('Point')) !!}
    {!! Pform::textarea('description', __('Description')) !!}
    {!! Pform::submit(__('Submit')) !!}
{!! Pform::close() !!}

```

Output:

[![Output](https://raw.githubusercontent.com/mannv/form/6a0782fadb435a7d985e62791b13f85ca5b9178d/output.png)](https://raw.githubusercontent.com/mannv/form/6a0782fadb435a7d985e62791b13f85ca5b9178d/output.png)

### Other demo

[](#other-demo)

```

            @if(Route::currentRouteName() == 'backend.admin.create')
                {{__('Create new admin')}}
            @else
                {{__('Edit admin')}}
            @endif

    @if(Route::currentRouteName() == 'backend.admin.create')
        {!! Pform::open(['url' => route('backend.admin.store'), 'method' => 'POST'], \Modules\Backend\Http\Requests\AdminRequest::class) !!}
    @else
        {!! Pform::model($data, ['url' => route('backend.admin.update', ['id' => $data['id']]), 'method' => 'PUT'], \Modules\Backend\Http\Requests\AdminRequest::class) !!}
    @endif

            {!! Pform::text('name', __('Name')) !!}
            {!! Pform::email('email', __('Email')) !!}
            {!! Pform::password('password', __('Password')) !!}
            {!! Pform::password('password_confirmation', __('Reenter Password')) !!}

            {!! Pform::submit(__('Submit'), ['class' => 'btn btn-success']) !!}

    {!! Pform::close() !!}

```

Publish Configuration
---------------------

[](#publish-configuration)

```
php artisan vendor:publish --provider "Plum\Form\FormServiceProvider"

```

Form option
-----------

[](#form-option)

OptionTypeDefaultDescriptionidstringrandomduy nhất trên trang HTML, cho phần validate form với javascript, nếu không muốn validate bằng js có thể đưa id này vào cấu hình **skip\_validate\_js** trong file cấu hình `pform.php`viewstringform\_grouptên view sẽ dùng để render lên các phần tử, view này sẽ nằm trong namespace `plum`hide\_mandatorybooleanfalse**true** sẽ không hiển thị dấu **\*** đỏ bên cạnh labelContributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [mannv](https://github.com/mannv)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~48 days

Recently: every ~127 days

Total

12

Last Release

2067d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59cd0c335811548749478344813ad4edea4ab61c9d0b6f732b03819bbe261a17?d=identicon)[mannv](/maintainers/mannv)

---

Top Contributors

[![mannv](https://avatars.githubusercontent.com/u/22742444?v=4)](https://github.com/mannv "mannv (1 commits)")

---

Tags

laravelform

### Embed Badge

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

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

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

163354.8k1](/packages/barryvdh-laravel-form-bridge)[realripley00/bootstrap-4-form

Laravel 5 form wrappers for Bootstrap 4.

1615.8k1](/packages/realripley00-bootstrap-4-form)[webup/laravel-form

A Laravel package to help build forms.

147.2k1](/packages/webup-laravel-form)[cornford/bootstrapper

An easy way to intergrate Twitter Bootstrap with Laravel.

232.7k](/packages/cornford-bootstrapper)

PHPackages © 2026

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