PHPackages                             devinci-it/quick-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. [Templating &amp; Views](/categories/templating)
4. /
5. devinci-it/quick-form

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

devinci-it/quick-form
=====================

Quick-Form is a lightweight PHP library designed to streamline the creation of HTML forms in your PHP applications. It provides a simple and intuitive interface for generating HTML forms with ease.

v0.0.1(2y ago)115MITPHP

Since Apr 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/devinci-it/quick-form)[ Packagist](https://packagist.org/packages/devinci-it/quick-form)[ RSS](/packages/devinci-it-quick-form/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

devinci-it/quick-form Library
=============================

[](#devinci-itquick-form-library)

The `Devinci\QuickForm` library provides a convenient way to generate HTML forms dynamically in PHP applications. With this library, developers can easily create and customize forms with various input types, set form attributes, and handle form rendering seamlessly.

Features
--------

[](#features)

- **FormBuilder Class**: The core component of the library, allowing for the programmatic creation of HTML forms.
- **Support for Multiple Input Types**: Text inputs, integer inputs, text areas, date inputs, radio buttons, and checkboxes are all supported.
- **Form Attribute Management**: Easily set form attributes such as method, action, class, and id.
- **Input Grouping**: Group input fields together for better organization and presentation within the form.
- **Submit and Clear Buttons**: Set submit and clear buttons with customizable attributes.
- **Customization**: Flexibility to customize form elements, attributes, and buttons according to requirements.

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

[](#installation)

You can install the `Devinci\QuickForm` library via Composer:

```
composer require devinci-it/quick-form
```

Alternatively, you can include the necessary files manually in your project.

Usage
-----

[](#usage)

1. **Instantiate FormBuilder**: Create an instance of the `FormBuilder` class by providing the form action and, optionally, the form submission method and a custom HTML renderer.

    ```
    $formBuilder = new FormBuilder('/submit-form', 'POST');
    ```
2. **Set Form Attributes**: Optionally, set attributes for the form tag using the `setFormAttributes` method.

    ```
    $formBuilder->setFormAttributes([
        'class' => 'my-form',
        'id' => 'my-form-id'
    ]);
    ```
3. **Add Input Fields**: Add input fields to the form using methods like `addTextInput`, `addIntegerInput`, `addTextArea`, etc.

    ```
    $formBuilder->addTextInput('username', 'Enter your username', ['class' => 'form-control']);
    $formBuilder->addIntegerInput('age', 'Enter your age');
    ```
4. **Group Inputs**: Group input fields together using the `setInputGroup` method if needed.

    ```
    $formBuilder->setInputGroup('personal_info', ['username', 'age']);
    ```
5. **Set Submit and Clear Buttons**: Set the submit button and clear button using the `setSubmitButton` and `setClearButton` methods respectively.

    ```
    $formBuilder->setSubmitButton('submit', 'Submit Form', ['class' => 'btn btn-primary']);
    $formBuilder->setClearButton('clear', 'Clear Form', ['class' => 'btn btn-secondary']);
    ```
6. **Render the Form**: Render the form HTML using the `render` method.

    ```
    echo $formBuilder->render();
    ```
7. **Integration with Web Applications**: Integrate the generated forms seamlessly into your web applications by embedding them within HTML pages or templates.
8. **Customization**: Customize the appearance and behavior of forms by modifying CSS styles, JavaScript interactions, and form processing logic as per your application's requirements.

Examples
--------

[](#examples)

The Devinci QuickForm library can be used for various use cases including:

- User Registration Forms
- Data Entry Forms
- Contact Forms
- Survey Forms

Contribution
------------

[](#contribution)

Contributions to the Devinci QuickForm library are welcome! Feel free to submit bug reports, feature requests, or pull requests via GitHub.

License
-------

[](#license)

This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

---

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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

766d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4d3d3b0aec4f30cd6bca90b49a9c4bb801be47143d3e7fac6ab06ec6e6f589f?d=identicon)[devinci-it](/maintainers/devinci-it)

---

Top Contributors

[![devinci-it](https://avatars.githubusercontent.com/u/108965390?v=4)](https://github.com/devinci-it "devinci-it (2 commits)")

### Embed Badge

![Health badge](/badges/devinci-it-quick-form/health.svg)

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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