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

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

ganeshk007/form-generator
=========================

A Laravel package for form fields generate

v1.0.0(1mo ago)00MITBladePHP &gt;=8.0

Since Jun 14Pushed 1mo agoCompare

[ Source](https://github.com/Ganeshk007/form-generator)[ Packagist](https://packagist.org/packages/ganeshk007/form-generator)[ RSS](/packages/ganeshk007-form-generator/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel Form Generator
======================

[](#laravel-form-generator)

A dynamic Laravel package for creating reusable form templates, generating forms using configurable field stubs, previewing forms in real time, and exporting the generated HTML code.

Features
--------

[](#features)

- Manage reusable form templates
- Define custom template stubs
- Create dynamic field definitions
- Support multiple field types
- Live form preview
- Generate HTML form code instantly
- Copy generated code to clipboard
- Bootstrap-based user interface
- Easy integration into Laravel applications
- Package auto-discovery support

---

Supported Field Types
---------------------

[](#supported-field-types)

The package currently supports the following field types:

- Text
- Email
- Password
- Number
- Date
- Textarea
- Select
- Radio
- Checkbox
- File Upload

Additional field types can easily be added using stub reference templates.

---

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

[](#installation)

Install the package via Composer:

```
composer require ganeshk007/form-generator
```

Publish package assets and migrations:

```
php artisan vendor:publish --provider="Ganesh\FormGenerator\FormGeneratorServiceProvider"
```

Run migrations:

```
php artisan migrate
```

---

Accessing the Package
---------------------

[](#accessing-the-package)

After installation, access the package using the following routes:

### Manage Templates

[](#manage-templates)

```
/form-generator/templates

```

### Generate Forms

[](#generate-forms)

```
/form-generator

```

---

Workflow
--------

[](#workflow)

The package follows a simple workflow:

### 1. Create a Form Template

[](#1-create-a-form-template)

Define a reusable form layout using a template stub.

Example:

```

    @csrf

    [[FIELDS]]

        Submit

```

The placeholder `[[FIELDS]]` will be replaced with generated field HTML.

---

### 2. Define Available Fields

[](#2-define-available-fields)

Configure field stubs such as:

Example Text Field:

```

    {{ $name }}

```

Example Email Field:

```

    {{ $name }}

```

---

### 3. Generate Forms

[](#3-generate-forms)

Select a template and configure fields by specifying:

- Field Type
- Field Label
- Field ID
- CSS Class
- Required Option

Preview the form instantly before exporting.

---

Screenshots
-----------

[](#screenshots)

### Manage Form Templates

[](#manage-form-templates)

Manage all created templates and perform edit/delete operations.

[![Manage Templates](docs/images/manage-templates.png)](docs/images/manage-templates.png)

Features:

- View all templates
- See field count
- Edit templates
- Delete templates
- Navigate to form generation

---

### Create Form Template

[](#create-form-template)

Create reusable form layouts and define available field stubs.

[![Create Template](docs/images/create-template.png)](docs/images/create-template.png)

Features:

- Template Name
- Template Stub Editor
- Dynamic Field Definitions
- Add Multiple Fields
- Save Templates

---

### Generate Form

[](#generate-form)

Generate forms dynamically using existing templates.

[![Generate Form](docs/images/generate-form.png)](docs/images/generate-form.png)

Features:

- Select Template
- Add Fields
- Configure IDs and Classes
- Mark Fields as Required
- Remove Fields
- Live Preview
- Show Generated Code

---

### Generated Code

[](#generated-code)

View and copy the generated HTML.

[![Show Code](docs/images/show-code.png)](docs/images/show-code.png)

Features:

- Generated HTML Output
- Copy to Clipboard
- Template Stub Integration
- Field Placeholder Replacement

---

Example Generated Output
------------------------

[](#example-generated-output)

```

    @csrf

        First Name

        Last Name

        Email

        Submit

```

---

Extending the Package
---------------------

[](#extending-the-package)

You can create custom field types by adding new stubs.

Examples:

- Color Picker
- Range Slider
- Telephone Input
- URL Input
- DateTime Picker
- Multi-select Dropdown
- Custom Components

---

Requirements
------------

[](#requirements)

- PHP 7.3 or higher
- Laravel 8.x and above
- Bootstrap 5

---

Contributing
------------

[](#contributing)

Contributions are welcome.

Please fork the repository and submit a pull request for improvements or new features.

---

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

---

Author
------

[](#author)

**Ganesh Kumar**

Laravel Full Stack Developer

GitHub: Packagist:

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfcd01fe81d547d046f1f0995009c696149feaf2c97d10bedbd72caaf0279050?d=identicon)[Ganeshk007](/maintainers/Ganeshk007)

---

Top Contributors

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

---

Tags

laravelgeneratorform

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M348](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[akira/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

494.8k](/packages/akira-laravel-qrcode)

PHPackages © 2026

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