PHPackages                             icron/yii-dynamic-model - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. icron/yii-dynamic-model

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

icron/yii-dynamic-model
=======================

DynamicModel is a model class primarily used to support ad hoc data validation

v0.1(10y ago)42.6k2[1 PRs](https://github.com/icron/yii-dynamic-model/pulls)BSDPHPPHP &gt;=5.4.0

Since Aug 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/icron/yii-dynamic-model)[ Packagist](https://packagist.org/packages/icron/yii-dynamic-model)[ Docs](https://github.com/icron/yii-dynamic-model)[ RSS](/packages/icron-yii-dynamic-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

DynamicModel for Yii1
=====================

[](#dynamicmodel-for-yii1)

[![Latest Version](https://camo.githubusercontent.com/f697efd09f7cec80eaac8709d1a75ea085a5988601836b7438fda9e3a5da6915/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6963726f6e2f7969692d64796e616d69632d6d6f64656c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/icron/yii-dynamic-model/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/8535191cc619d8d5b1066430f60d6eb624d5442e77d98169145a202a3ed6bfab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963726f6e2f7969692d64796e616d69632d6d6f64656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/icron/yii-dynamic-model)

DynamicModel is a model class primarily used to support ad hoc data validation. The typical usage of DynamicModel is as follows,

```
  $model = new DynamicModel(
      ['name', 'email'],
      [
         ['name, email', 'length', 'max' => 50],
      ]
  );
  if ($model->hasErrors()) {
      // validation fails
  } else {
      // validation succeeds
  }
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

3928d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f734ac9245d62145f90e4751aa6b47117b50f89002d90928b5244e5bc6a7152?d=identicon)[icron](/maintainers/icron)

---

Tags

validationmodelextensionyiidynamic

### Embed Badge

![Health badge](/badges/icron-yii-dynamic-model/health.svg)

```
[![Health](https://phpackages.com/badges/icron-yii-dynamic-model/health.svg)](https://phpackages.com/packages/icron-yii-dynamic-model)
```

###  Alternatives

[cebe/yii2-lifecycle-behavior

Define the lifecycle of a model by defining allowed satus changes in terms of a state machine.

5119.8k1](/packages/cebe-yii2-lifecycle-behavior)[yiibr/yii2-br-validator

Provide validations and features for brazilian localization

14103.2k4](/packages/yiibr-yii2-br-validator)[usmanhalalit/dryval

Simplify validation in Laravel.

394.7k](/packages/usmanhalalit-dryval)[ikkez/f3-validation-engine

Validation engine for Cortex and the PHP Fat-Free Framework

1221.0k1](/packages/ikkez-f3-validation-engine)

PHPackages © 2026

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