PHPackages                             thienhungho/yii2-favorites - 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. thienhungho/yii2-favorites

ActiveYii2-extension

thienhungho/yii2-favorites
==========================

Yii2 Favorites

v1.0.3(7y ago)122BSD-3-ClausePHP

Since Nov 3Pushed 3y agoCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (0)

Yii2 Favorites System
=====================

[](#yii2-favorites-system)

Favorites System for Yii2

Installation
------------

[](#installation)

This is just an example, memorible moment. The source code may not work for known reasons. This source code include against loss license feature.

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist thienhungho/yii2-favorites "*"

```

or add

```
"thienhungho/yii2-favorites": "*"

```

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

### Migration

[](#migration)

Run the following command in Terminal for database migration:

```
yii migrate/up --migrationPath=@vendor/thienhungho/Favorites/migrations

```

Or use the [namespaced migration](http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#namespaced-migrations) (requires at least Yii 2.0.10):

```
// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'thienhungho\Favorites\migrations\namespaced',
        ],
    ],
],
```

Then run:

```
yii migrate/up

```

Config
------

[](#config)

Add module FavoriteManage to your `AppConfig` file.

```
...
'modules'          => [
    ...
    /**
      * Favorite
      */
    'favorite' => [
        'class' => 'thienhungho\Favorites\modules\Favorites\FavoriteModule',
    ],
    ...
],
...
```

Modules
-------

[](#modules)

[FavoriteBase](https://github.com/thienhungho/yii2-favorites/tree/master/src/modules/FavoriteBase), [Favorites](https://github.com/thienhungho/yii2-favorites/tree/master/src/modules/Favorites)

Functions
---------

[](#functions)

[Core](https://github.com/thienhungho/yii2-favorites/tree/master/src/functions/core.php)

Models
------

[](#models)

[Favorite](https://github.com/thienhungho/yii2-favorites/tree/master/src/models/Favorite.php)

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

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 ~6 days

Total

4

Last Release

2676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a902ad5670f1b17aed996a5c0f83586bc6ea48bcf1cf71d07fd9f660fd0a2a48?d=identicon)[thienhungho](/maintainers/thienhungho)

---

Top Contributors

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

---

Tags

yii2extensionFavorites

### Embed Badge

![Health badge](/badges/thienhungho-yii2-favorites/health.svg)

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

PHPackages © 2026

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