PHPackages                             roaresearch/yii2-formgenerator - 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. [Framework](/categories/framework)
4. /
5. roaresearch/yii2-formgenerator

ActiveYii2-extension[Framework](/categories/framework)

roaresearch/yii2-formgenerator
==============================

Yii 2 Library to configure form generator

2.0.0(6y ago)07MITPHPPHP ^7.1

Since Nov 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ROAResearch/yii2-formgenerator)[ Packagist](https://packagist.org/packages/roaresearch/yii2-formgenerator)[ RSS](/packages/roaresearch-yii2-formgenerator/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

Yii2 Form Generator
===================

[](#yii2-form-generator)

Library to dynamically generate forms in database.

[![Latest Stable Version](https://camo.githubusercontent.com/8231637e6e480ea6ace2954b0af7936592c6507e201b325680ccd14b9d41e7a7/68747470733a2f2f706f7365722e707567782e6f72672f726f6172657365617263682f796969322d666f726d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/roaresearch/yii2-formgenerator)[![Total Downloads](https://camo.githubusercontent.com/a1b80eba10853defe94392d262d3bddbb68f18626095eb0eb8f5d980b2106fea/68747470733a2f2f706f7365722e707567782e6f72672f726f6172657365617263682f796969322d666f726d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/roaresearch/yii2-formgenerator)[![Code Coverage](https://camo.githubusercontent.com/ba31cbb25bc6085844be5ca690330a4d6656eebe2c26c84690c70fffa13e7755/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f6172657365617263682f796969322d666f726d67656e657261746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/roaresearch/yii2-formgenerator/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e7ef85bef944b69c34da3f264297855838565e421c47f0f99f94b4dd2c451203/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f6172657365617263682f796969322d666f726d67656e657261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/roaresearch/yii2-formgenerator/?branch=master)

Scrutinizer [![Build Status Scrutinizer](https://camo.githubusercontent.com/18bbb010fba91ef3768055c7bab089d27bcc6cd13718d7d462fd83bd2818e11c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f6172657365617263682f796969322d666f726d67656e657261746f722f6261646765732f6275696c642e706e673f623d6d6173746572267374796c653d666c6174)](https://scrutinizer-ci.com/g/roaresearch/yii2-formgenerator/build-status/master)Travis [![Build Status Travis](https://camo.githubusercontent.com/3ac67f875da7b115cf35fb2bc989f3d616456d6546be3a8d8cb893e1ac8591d2/68747470733a2f2f7472617669732d63692e6f72672f726f6172657365617263682f796969322d666f726d67656e657261746f722e7376673f6272616e63683d6d6173746572267374796c653d666c61743f7374796c653d666f722d7468652d6261646765)](https://travis-ci.org/roaresearch/yii2-formgenerator)

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

[](#prerequisites)

- Install PHP 7.1 or higher
- [Composer Installed](https://getcomposer.org/doc/00-intro.md)

The rest of the requirements are checked by composer when installing the repository on the next step.

### Installation

[](#installation)

---

You can use composer to install the library `roaresearch/yii2-formgenerator` by running the command;

`composer require roaresearch/yii2-formgenerator`

or edit the `composer.json` file

```
require: {
    "roaresearch/yii2-formgenerator": "*",
}
```

### Deployment

[](#deployment)

Then run the required migrations

`php yii migrate/up -p=@roaresearch/formgenerator/migrations/tables`

Which will install the following table structure

[![Database Diagram](diagram.png)](diagram.png)

#### ROA Backend Usage

[](#roa-backend-usage)

---

The ROA support is very simple and can be done by just adding a module version to the api container which will be used to hold the resources.

```
class Api extends \roaresearch\yii2\roa\modules\ApiContainer
{
   $versions = [
       // other versions
       'fg1' => ['class' => 'roaresearch\yii2\formgenerator\roa\modules\Version'],
   ];
}
```

You can then access the module to check the available resources.

- data-type
- field
- field/&lt;field\_id:\\d+&gt;/rule
- field/&lt;field\_id:\\d+&gt;/rule/&lt;rule\_id:\\d+&gt;/property
- form
- form/&lt;form\_id:\\d+&gt;/section
- form/&lt;form\_id:\\d+&gt;/section/&lt;section\_id:\\d+&gt;/field
- form/&lt;form\_id:\\d+&gt;/solicitude
- form/&lt;form\_id:\\d+&gt;/solicitude/&lt;solicitude\_id:\\d+&gt;/value

Which will implement CRUD functionalities for a formgenerator.

Alternatively you can add the resource routes to your existing version.

Running the tests
-----------------

[](#running-the-tests)

This library contains tools to set up a testing environment using composer scripts, for more information see [Testing Environment](https://github.com/roaresearch/yii2-formgenerator/blob/master/CONTRIBUTING.md) section.

### Break down into end to end tests

[](#break-down-into-end-to-end-tests)

Once testing environment is setup, run the following commands.

```
composer deploy-tests

```

Run tests.

```
composer run-tests

```

Run tests with coverage.

```
composer run-coverage

```

Live Demo
---------

[](#live-demo)

You can run a live demo on a freshly installed project to help you run testing or understand the responses returned by the server. The live demo is initialized with the command.

```
php -S localhost:8000 -t tests/_app

```

Where `:8000` is the port number which can be changed. This allows you call ROA services on a browser or REST client.

Use Cases
---------

[](#use-cases)

TO DO

Built With
----------

[](#built-with)

- Yii 2: The Fast, Secure and Professional PHP Framework

Code of Conduct
---------------

[](#code-of-conduct)

Please read [CODE\_OF\_CONDUCT.md](https://github.com/roaresearch/yii2-formgenerator/blob/master/CODE_OF_CONDUCT.md) for details on our code of conduct.

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

[](#contributing)

Please read [CONTRIBUTING.md](https://github.com/roaresearch/yii2-formgenerator/blob/master/CONTRIBUTING.md) for details on the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ROAResearch/yii2-formgenerator/tags).

*Considering [SemVer](http://semver.org/) for versioning rules 9, 10 and 11 talk about pre-releases, they will not be used within the ROAResearch.*

Authors
-------

[](#authors)

- [**Angel Guevara**](https://github.com/Faryshta) - Initial work
- [**Carlos Llamosas**](https://github.com/neverabe) - Initial work

See also the list of [contributors](https://github.com/ROAResearch/yii2-formgenerator/graphs/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.9% 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

2314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d5f64412ef020f8c137ff5c7f5e4a0866271f2f9ba9584e5a24aa48467f958d?d=identicon)[Faryshta](/maintainers/Faryshta)

![](https://www.gravatar.com/avatar/2341d88f3cdea0c2474cfbf59e5cf6dab5dd6a026d7846fabf219f2a93be1641?d=identicon)[neverabe](/maintainers/neverabe)

---

Top Contributors

[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (136 commits)")[![neverabe](https://avatars.githubusercontent.com/u/1173807?v=4)](https://github.com/neverabe "neverabe (23 commits)")[![Seether69](https://avatars.githubusercontent.com/u/12069787?v=4)](https://github.com/Seether69 "Seether69 (4 commits)")[![josejesusguzman](https://avatars.githubusercontent.com/u/8755301?v=4)](https://github.com/josejesusguzman "josejesusguzman (2 commits)")[![imanjarrezc](https://avatars.githubusercontent.com/u/25618997?v=4)](https://github.com/imanjarrezc "imanjarrezc (1 commits)")

---

Tags

frameworkgeneratoryii2formroa

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/roaresearch-yii2-formgenerator/health.svg)

```
[![Health](https://phpackages.com/badges/roaresearch-yii2-formgenerator/health.svg)](https://phpackages.com/packages/roaresearch-yii2-formgenerator)
```

###  Alternatives

[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)[yidas/yii2-bower-asset

Bower Assets for Yii 2 app provided via Composer repository

331.2M30](/packages/yidas-yii2-bower-asset)[tecnocen/yii2-workflow

Yii 2 Library to configure workflows

136.2k](/packages/tecnocen-yii2-workflow)

PHPackages © 2026

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