PHPackages                             karan/laform - 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. karan/laform

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

karan/laform
============

Laravel form builder

2255PHP

Since Feb 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/karanjilka/laform)[ Packagist](https://packagist.org/packages/karan/laform)[ RSS](/packages/karan-laform/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel form builder for Laravel 5

Installation
============

[](#installation)

Require this package in your `composer.json` and update composer. This will download the package.

```
"karan/laform": "dev-master"
```

Then add Service provider to config/app.php

```
Karan\Laform\LaformServiceProvider::class,
```

And Facade (also in config/app.php)

```
'Laform'    => Karan\Laform\Facade::class
```

Basic Usage
===========

[](#basic-usage)

Syntax

```
{!! Laform::field('fildname','fildtype','attributes') !!}
```

Examples

```
{!! Laform::open(array('url'=>'admin/formtest','class'=>'form-horizontal')) !!}

{!! Laform::field('name','text',['label'=>'Name']) !!}

{!! Laform::field('email','email',['label'=>'Email address']) !!}

{!! Laform::field('password','password',['label'=>'Password']) !!}

{!! Laform::field('password_confirmation','password',['label'=>'Confirm Password']) !!}

{!! Laform::field('role_id[]','select',
['label'=>'Select Roles',
'options'=>[1=>'Admin',2=>'Siteadmin'],
'attr'=>['multiple'=>'multiple']]) !!}

{!! Laform::field('test_textarea','textarea',['label'=>'Text Area','attr'=>['rows'=>'5','cols'=>'10']]) !!}

{!! Laform::field('test_chexbox','checkbox',['option'=>'1','label'=>'test Checkox']) !!}

{!! Laform::field('test_radio','radio',['option'=>'1','label'=>'test Checkox']) !!}

{!! Laform::field('test_chexboxs[]','checkboxs',['option'=>['1'=>'option 1','2'=>'option 2',
'3'=>'option 3'],'label'=>'test Checkox']) !!}

{!! Laform::close() !!}
```

\#Available common attributes Array

```
[
    //field value (use to set field value) - string/array (depends upon field type)
    'value' => '' // default is null

    //field attributes - array
    'attr' => [] // default is empty array

    //lable text - string
    'lable'   => '' // no default value, if not set lavle will not be displayed

    //lable attributes - array
    'label_attr'   => [] // default is empty array

    //template name
    'template' => '' // default is whatever set in config

    //custom wrapper prefix - can contain html
    'prefix'   => '' // default is empty

    //custom wrapper suffix - can contain html
    'suffix'   => '' // default is empty

    //field wrapper prefix - can contain html
    'field_prefix'   => '' // default is empty

    //field wrapper prefix - can contain html
    'field_suffix'   => '' // default is empty

    //wrapper - true/false
    'wrapper'   => '' // default is true

    //wrapper attributes - array
    'wrapper_attr'   => [] // default is empty array

    //show error blocks or not - true/flase
    'show_errors'   => '' // default is true

    //error attributes - array
    'error_attr'   => [] // default is empty array

    //help block
    'help_block'   => [
        'text' => '' // default is empty
        'attr' => [] // default is empty array
    ]

]
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3261985?v=4)[Karan Goel](/maintainers/karan)[@karan](https://github.com/karan)

---

Top Contributors

[![karanjilka](https://avatars.githubusercontent.com/u/9401480?v=4)](https://github.com/karanjilka "karanjilka (15 commits)")

### Embed Badge

![Health badge](/badges/karan-laform/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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