icron/yii-dynamic-model

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

Installs: 2 558

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 2

Open Issues: 1

pkg:composer/icron/yii-dynamic-model

v0.1 2015-08-17 06:17 UTC

This package is auto-updated.

Last update: 2025-10-23 04:42:22 UTC


README

Latest Version Software License Total Downloads

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
  }