PHPackages                             stepanorda/yii2-contenttypes - 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. stepanorda/yii2-contenttypes

ActiveYii2-extension

stepanorda/yii2-contenttypes
============================

01442PHP

Since Sep 4Pushed 10y ago2 watchersCompare

[ Source](https://github.com/stepanorda/yii2-contenttypes)[ Packagist](https://packagist.org/packages/stepanorda/yii2-contenttypes)[ RSS](/packages/stepanorda-yii2-contenttypes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-contenttypes
=================

[](#yii2-contenttypes)

This extension keeps track of your models giving them unique ids so you can easily use them in junction tables. In the future I plan to improve this extension so it will be something like ContentTypes from Django framework.

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

[](#installation)

### Downloading yii2-contenttypes using composer

[](#downloading-yii2-contenttypes-using-composer)

Add yii2-contenttypes to the require section of your composer.json file:

```
{
     "require": {
         "stepanorda/yii2-contenttypes": "*"
     }
}
```

Then run the command:

```
$ php composer.phar update
```

Apply the migration:

```
$ php yii migrate/up --migrationPath=@vendor/stepanorda/yii2-contenttypes/migrations
```

Usage
=====

[](#usage)

License
=======

[](#license)

Apache License 2.0

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

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/c000cbc719dba384dcd944d9cb721c132e9510db5a34cd76d7845f52f552fb2f?d=identicon)[stepan-orda](/maintainers/stepan-orda)

---

Top Contributors

[![stepanorda](https://avatars.githubusercontent.com/u/6368917?v=4)](https://github.com/stepanorda "stepanorda (14 commits)")

### Embed Badge

![Health badge](/badges/stepanorda-yii2-contenttypes/health.svg)

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

PHPackages © 2026

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