PHPackages                             spawan/yii2-custommodel - 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. spawan/yii2-custommodel

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

spawan/yii2-custommodel
=======================

The Custom model integration for the Yii framework

0238PHP

Since Dec 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/spawan/gii-custommodel)[ Packagist](https://packagist.org/packages/spawan/yii2-custommodel)[ RSS](/packages/spawan-yii2-custommodel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

gii-custommodel
===============

[](#gii-custommodel)

Model generator-- • It is used to generates separate model classes to customize ,base and query models classes to regenerate. • Use different templates for model generation.

Use custom generators, model templates (Define it in main-local.php)--

$config\['modules'\]\['gii'\] = \[ 'class' =&gt; 'yii\\gii\\Module', 'generators' =&gt; \[ 'model' =&gt; \[ 'class' =&gt; 'spawan\\custommodel\\Generator', 'templates' =&gt; \[ //setting for out templates 'model' =&gt; '@spawan/custommodel/default', \] \] \], \];

namespaces--

```
1.customize class-
		namespace common\models;
2.Base class-
		namespace common\models\base;
3.Query class-
		namespace common\models\query;

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![spawan](https://avatars.githubusercontent.com/u/10653646?v=4)](https://github.com/spawan "spawan (6 commits)")

### Embed Badge

![Health badge](/badges/spawan-yii2-custommodel/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M298](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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