PHPackages                             culture-pn-psu/yii2-menu - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. culture-pn-psu/yii2-menu

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

culture-pn-psu/yii2-menu
========================

menu system

1.0(9y ago)07GPL-3.0PHP

Since Aug 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/culture-pn-psu/yii2-menu)[ Packagist](https://packagist.org/packages/culture-pn-psu/yii2-menu)[ RSS](/packages/culture-pn-psu-yii2-menu/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Menu Manager for Yii 2
======================

[](#menu-manager-for-yii-2)

**ระบบจัดการเมนู**ระบบนี้ผมพัฒนาใช้เองทั้งเว็บไซต์ ซึ่งเหมาะสำหรับงาน Backend อีกทั้งระบบยังผนวกเข้ากับ RBAC ช่วยในเรื่องการจัดการสิทธิ์การแสดงเมนู ระบบจะมีใจความสำคัญดังนี้

- จัดการเมนู
- จัดการสิทธิ์ให้กับเมนู (BRAC)
- จัดการหมวดหมู่เมนู
- จัดทำเมนูซ้อนกันได้

Installation ติดตั้ง
--------------------

[](#installation-ติดตั้ง)

### Install With Composer

[](#install-with-composer)

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

Either run

```
composer require firdows/yii2-menu "@dev"

```

Or, you may add

```
"firdows/yii2-menu" : "@dev"

```

Required ความต้องการ
--------------------

[](#required-ความต้องการ)

Update either ***config/web.php*** (basic) or ***config/main.php*** (advanced)

```
return [
    ...
    'modules' => [
        'menu' => [
            'class' => 'culturePnPsu\menu\Module',
        ],
    ],
    'components'=>[...]
    ...
];
```

### Migrations

[](#migrations)

```
yii migrate --migrationPath=@firdows/menu/migrations

```

### ตั้งค่า RBAC

[](#ตั้งค่า-rbac)

[Basic Configuration](https://github.com/mdmsoft/yii2-admin/blob/master/docs/guide/configuration.md)

```
yii migrate --migrationPath=@mdm/admin/migrations

```

Usage การเรียกใช้
-----------------

[](#usage-การเรียกใช้)

การป้อนรหัสหมวดหมู่เมนูเข้าไปในฟังค์ชั่นจะได้ข้อมูล Array อ่าน

```
$nav = new culturePnPsu\menu\models\Navigate();
$menu = $nav->menu(menu_cate_id);
```

#### การนำไปใช้กับ Widget

[](#การนำไปใช้กับ-widget)

Ex.

```
dmstr\widgets\Menu::widget([
    'options' => ['class' => 'sidebar-menu'],
    'items' => $menu,
]);
```

Example
-------

[](#example)

[![](https://camo.githubusercontent.com/f6d750c9b5aa4ae7a5fe286974dc129f18d690b3d032adce5885e729e5e5c0a0/687474703a2f2f696b686c6173736572766963652e636f6d2f75706c6f6164732f6d656e752e706e67)](https://camo.githubusercontent.com/f6d750c9b5aa4ae7a5fe286974dc129f18d690b3d032adce5885e729e5e5c0a0/687474703a2f2f696b686c6173736572766963652e636f6d2f75706c6f6164732f6d656e752e706e67)

Develop By
----------

[](#develop-by)

Ahmad

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

Total

2

Last Release

3529d ago

Major Versions

1.0 → 2.0.x-dev2016-09-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d6e22c84850458304b5e06e01829622a1a97459c9ee7aaf738dd07bd5c559ab?d=identicon)[madone](/maintainers/madone)

---

Top Contributors

[![firdows](https://avatars.githubusercontent.com/u/18734077?v=4)](https://github.com/firdows "firdows (36 commits)")

---

Tags

menuyii2extensionsystem

### Embed Badge

![Health badge](/badges/culture-pn-psu-yii2-menu/health.svg)

```
[![Health](https://phpackages.com/badges/culture-pn-psu-yii2-menu/health.svg)](https://phpackages.com/packages/culture-pn-psu-yii2-menu)
```

###  Alternatives

[kartik-v/yii2-widget-sidenav

An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)

364.0M8](/packages/kartik-v-yii2-widget-sidenav)[kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

27564.8k6](/packages/kartik-v-yii2-nav-x)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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