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 1mo ago

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 22% 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://www.gravatar.com/avatar/ff258d7387a3b8f20903c4a8051b7b5e436f6d21f5a203b075634c0a8e23b335?d=identicon)[spawan](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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