PHPackages                             jc-it/yii2-model-magic - 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. jc-it/yii2-model-magic

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jc-it/yii2-model-magic
======================

Some helper classes to work with models for forms and search.

v2.1.0(3mo ago)0311MITPHPPHP &gt;=8.0.0

Since Apr 10Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/JC-IT/yii2-model-magic)[ Packagist](https://packagist.org/packages/jc-it/yii2-model-magic)[ RSS](/packages/jc-it-yii2-model-magic/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (10)Versions (10)Used By (0)

Models for forms and search for Yii2
====================================

[](#models-for-forms-and-search-for-yii2)

[![codecov](https://camo.githubusercontent.com/fcb09cff28e03fd34852c3ce8ed6724bf38ab6bbf01d95f5fcbab5f6132e61b0/68747470733a2f2f636f6465636f762e696f2f67682f6a632d69742f796969322d6d6f64656c2d6d616769632f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/jc-it/yii2-model-magic)[![Continous integration](https://github.com/jc-it/yii2-model-magic/actions/workflows/ci.yaml/badge.svg)](https://github.com/jc-it/yii2-model-magic/actions/workflows/ci.yaml)[![Packagist Total Downloads](https://camo.githubusercontent.com/9fc81410b874b87c29f076933d11ea8b4ccc20ba4088de5d87497e005b46e326/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a632d69742f796969322d6d6f64656c2d6d61676963)](https://camo.githubusercontent.com/9fc81410b874b87c29f076933d11ea8b4ccc20ba4088de5d87497e005b46e326/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a632d69742f796969322d6d6f64656c2d6d61676963)[![Packagist Monthly Downloads](https://camo.githubusercontent.com/40d852a2fbd8b6ea2ec1d8e149fdbca384c2135b1c916f9d97ff3a1d1a804b10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a632d69742f796969322d6d6f64656c2d6d61676963)](https://camo.githubusercontent.com/40d852a2fbd8b6ea2ec1d8e149fdbca384c2135b1c916f9d97ff3a1d1a804b10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a632d69742f796969322d6d6f64656c2d6d61676963)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/f67d2eb8aecb81926c670dab31c6653dc2b2de35493fe05d0d6fb6eace379c70/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a632d69742f796969322d6d6f64656c2d6d61676963)](https://camo.githubusercontent.com/f67d2eb8aecb81926c670dab31c6653dc2b2de35493fe05d0d6fb6eace379c70/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a632d69742f796969322d6d6f64656c2d6d61676963)[![Packagist Version](https://camo.githubusercontent.com/1e54161f81aeda4a65ea9b02896ab945315f96cb4206316194bdfc4a7532b41c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a632d69742f796969322d6d6f64656c2d6d61676963)](https://camo.githubusercontent.com/1e54161f81aeda4a65ea9b02896ab945315f96cb4206316194bdfc4a7532b41c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a632d69742f796969322d6d6f64656c2d6d61676963)

This extension provides a package that implements some extra models with basic functionality for working with forms and search models.

```
$ composer require jc-it/yii2-model-magic
```

or add

```
"jc-it/yii2-model-magic": "^"

```

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

Configuration
-------------

[](#configuration)

To use the models, just extend these in your own models.

TODO
----

[](#todo)

- Fix PHPStan, re-add to `captainhook.json`
    - ```
        {
            "action": "vendor/bin/phpstan",
            "options": [],
            "conditions": []
        },

        ```
- Add tests

Credits
-------

[](#credits)

- [Joey Claessen](https://github.com/joester89)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/jc-it/yii2-model-magic/blob/master/LICENSE) for more information.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance79

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~265 days

Recently: every ~371 days

Total

9

Last Release

110d ago

Major Versions

v1.0.1 → v2.0.02022-01-04

PHP version history (2 changes)v1.0.0PHP &gt;=7.1.0

v2.0.0PHP &gt;=8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/88359ebe0456645a614e563dfbf0dd025b69ef57221050cb9eb31e3eef4dd0f9?d=identicon)[joester89](/maintainers/joester89)

---

Top Contributors

[![joester89](https://avatars.githubusercontent.com/u/9624366?v=4)](https://github.com/joester89 "joester89 (10 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jc-it-yii2-model-magic/health.svg)

```
[![Health](https://phpackages.com/badges/jc-it-yii2-model-magic/health.svg)](https://phpackages.com/packages/jc-it-yii2-model-magic)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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