PHPackages                             frenzelgmbh/cm-entity - 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. frenzelgmbh/cm-entity

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

frenzelgmbh/cm-entity
=====================

Common Entity Module for yii2

020PHP

Since Jun 9Pushed 12y ago1 watchersCompare

[ Source](https://github.com/FrenzelGmbH/cm-entity)[ Packagist](https://packagist.org/packages/frenzelgmbh/cm-entity)[ RSS](/packages/frenzelgmbh-cm-entity/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

cm-entity
=========

[](#cm-entity)

Common Entity Module (Frenzel GmbH 2014) v.0.1

Installation
============

[](#installation)

Add the following line to your composer.json require section:

```
"frenzelgmbh/cmentity":"*"

```

```
php yii migrate --migrationPath=@vendor/frenzelgmbh/cm-entity/migrations

```

Inside your yii-config, pls. add the following lines to your modules section. As you might see, the gridview needs to be implemented too.

```
'entity'=>[
  'class' => 'frenzelgmbh\cmentity\Module',
],
'gridview' =>  [
  'class' => '\kartik\grid\Module'
],

```

After this, you should be able to see the set of build in widgets and options under:

Design
======

[](#design)

The Entity module is use to store Entity/location informations, that can be linked to any other "module". So in general all modules are referenced by:

- mod\_table (which should hold the table name VARCHAR(100))
- mod\_id (which should hold the primarey key of the referenced record INTEGER(11))

Our Entity Model is based upon an article of "flexible entity design patterns" and is focused on relations between entities while keeping each entity as a unique one.

Widgets
=======

[](#widgets)

The "create"-Button:

```
if(class_exists('\frenzelgmbh\cmentity\widgets\CreateEntityModal')){
  echo \frenzelgmbh\cmentity\widgets\CreateEntityModal::widget(array(
    'module'      => 'tbl_test',
    'id'          => 1
  ));
}
```

The "related"-Grid:

```
if(class_exists('\frenzelgmbh\cmentity\widgets\RelatedEntityGrid')){
  echo \frenzelgmbh\cmentity\widgets\RelatedEntityGrid::widget(array(
    'module'      => 'tbl_test',
    'id'          => 1
  ));
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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/551abd4470d98ae959df06678c17aef3e8ac35187884a2872e79c77e040b5c8b?d=identicon)[philippfrenzel](/maintainers/philippfrenzel)

---

Top Contributors

[![philippfrenzel](https://avatars.githubusercontent.com/u/2319890?v=4)](https://github.com/philippfrenzel "philippfrenzel (34 commits)")

### Embed Badge

![Health badge](/badges/frenzelgmbh-cm-entity/health.svg)

```
[![Health](https://phpackages.com/badges/frenzelgmbh-cm-entity/health.svg)](https://phpackages.com/packages/frenzelgmbh-cm-entity)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M297](/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)
