PHPackages                             tecnocen/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. tecnocen/yii2-formgenerator

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

tecnocen/yii2-formgenerator
===========================

Yii 2 Library to configure form generator

0.5.0(6y ago)135.7k5[2 issues](https://github.com/tecnocen-com/yii2-formgenerator/issues)[1 PRs](https://github.com/tecnocen-com/yii2-formgenerator/pulls)MITPHPPHP ^7.1

Since Oct 27Pushed 6y ago7 watchersCompare

[ Source](https://github.com/tecnocen-com/yii2-formgenerator)[ Packagist](https://packagist.org/packages/tecnocen/yii2-formgenerator)[ RSS](/packages/tecnocen-yii2-formgenerator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (8)Versions (12)Used By (0)

Tecnocen Form Generator
=======================

[](#tecnocen-form-generator)

Library to dynamically generate forms in database.

[![Latest Stable Version](https://camo.githubusercontent.com/22a0963272adc4d36d2bc9933156eb3e35cc6b1b358c3da118bfd4b77130c8c8/68747470733a2f2f706f7365722e707567782e6f72672f7465636e6f63656e2f796969322d666f726d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/tecnocen/yii2-formgenerator)[![Total Downloads](https://camo.githubusercontent.com/ccf2a95dc53fe858e637c6f9968cc009fb110f2d874970165bb5838518811c18/68747470733a2f2f706f7365722e707567782e6f72672f7465636e6f63656e2f796969322d666f726d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/tecnocen/yii2-formgenerator)

Travis [![Build Status Travis](https://camo.githubusercontent.com/732a4dd8f7de4bed1636564a278114446e821914b4f02020ba620b36360ef9a2/68747470733a2f2f7472617669732d63692e6f72672f7465636e6f63656e2d636f6d2f796969322d666f726d67656e657261746f722e7376673f6272616e63683d6d6173746572267374796c653d666c61743f7374796c653d666f722d7468652d6261646765)](https://travis-ci.org/tecnocen-com/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 `tecnocen/yii2-formgenerator` by running the command;

`composer require tecnocen/yii2-formgenerator`

or edit the `composer.json` file

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

### Deployment

[](#deployment)

Then run the required migrations

`php yii migrate/up -p=@tecnocen/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 \tecnocen\roa\modules\ApiContainer
{
   $versions = [
       // other versions
       'fg1' => ['class' => 'tecnocen\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/tecnocen-com/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/tecnocen-com/yii2-formgenerator/blob/master/CODE_OF_CONDUCT.md) for details on our code of conduct.

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

[](#contributing)

Please read [CONTRIBUTING.md](https://github.com/tecnocen-com/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/tecnocen-com/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 Tecnocen-com.*

Authors
-------

[](#authors)

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

See also the list of [contributors](https://github.com/tecnocen-com/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

Acknowledgments
---------------

[](#acknowledgments)

- TO DO - Hat tip to anyone who's code was used
- TO DO - Inspiration
- TO DO - etc

[![yii2-workflow](https://camo.githubusercontent.com/27efd385b52d1f80968b87f3433de1f0c57983e900c12ba71c451faf51ffb62c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f5f62792d5465636e6f63656e2e636f6d2d6f72616e67652e7376673f7374796c653d666f722d7468652d6261646765)](https://www.tecnocen.com/)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.8% 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 ~69 days

Recently: every ~124 days

Total

10

Last Release

2545d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.6

0.2.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2029247?v=4)[Angel Guevara](/maintainers/Faryshta)[@Faryshta](https://github.com/Faryshta)

![](https://avatars.githubusercontent.com/u/1173807?v=4)[Carlos Llamosas](/maintainers/neverabe)[@neverabe](https://github.com/neverabe)

![](https://avatars.githubusercontent.com/u/219041594?v=4)[jose1824](/maintainers/jose1824)[@Jose1824](https://github.com/Jose1824)

---

Top Contributors

[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (135 commits)")[![neverabe](https://avatars.githubusercontent.com/u/1173807?v=4)](https://github.com/neverabe "neverabe (21 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

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-app-advanced

Yii 2 Advanced Project Template

1.7k960.6k5](/packages/yiisoft-yii2-app-advanced)[yiisoft/yii2-app-basic

Yii 2 Basic Project Template

7101.8M8](/packages/yiisoft-yii2-app-basic)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13725.7k53](/packages/skeeks-cms)[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)
