PHPackages                             gromver/yii2-models - 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. gromver/yii2-models

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

gromver/yii2-models
===================

Models based on the field specifications.

1.0.0.x-dev(10y ago)12421GNU-GPL-v2PHP

Since Aug 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/gromver/yii2-models)[ Packagist](https://packagist.org/packages/gromver/yii2-models)[ Docs](https://github.com/gromver/yii2-models.git)[ RSS](/packages/gromver-yii2-models/feed)WikiDiscussions master Synced 1mo ago

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

phpdoc-based-model
==================

[](#phpdoc-based-model)

Model based on the class public properties and PhpDoc's. Automatic form generation.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist gromver/yii2-models "*"

```

or add

```
"gromver/yii2-models": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

При помощи данного расширения можно создавать модели для произвольных структур данных на лету, а также автоматически генерировать форму.

#### Структура данных

[](#структура-данных)

Для начала определим структуру данных, для этого создадим класс и опишем желаемую структуру данных в публичных полях класса

```
class MyStructure {

}

```

#### Модель

[](#модель)

На основе нашей структуры данных, сгенерируем модель

```

```

#### Форма

[](#форма)

Используя виджет и модель сгенерируем форму

```

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e3f428d0f7530818b01bfc2bedc52dbeef2eb24ad9e2afd4c2bc03d7f74b0b3?d=identicon)[gromver](/maintainers/gromver)

---

Top Contributors

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

---

Tags

phpdocgeneratormodelyii

### Embed Badge

![Health badge](/badges/gromver-yii2-models/health.svg)

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

###  Alternatives

[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[raoul2000/yii-simple-workflow

A simple workflow engine for Yii 1

278.2k](/packages/raoul2000-yii-simple-workflow)[rymanalu/factory-generator

Laravel 5 Model Factory Generator.

178.0k](/packages/rymanalu-factory-generator)

PHPackages © 2026

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