{"id":14966784,"url":"https://github.com/pceuropa/yii2-menu","last_synced_at":"2025-09-05T22:37:45.343Z","repository":{"id":57037082,"uuid":"47918428","full_name":"pceuropa/yii2-menu","owner":"pceuropa","description":"Menu menager, dynamic Yii2 widget. Active menu items","archived":false,"fork":false,"pushed_at":"2019-01-22T21:48:15.000Z","size":76,"stargazers_count":27,"open_issues_count":8,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-31T09:34:13.655Z","etag":null,"topics":["bootstrap","drag","drop","navbar","yii2-extension"],"latest_commit_sha":null,"homepage":"https://pceuropa.net/yii2-extensions/yii2-menu","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pceuropa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-13T12:32:10.000Z","updated_at":"2024-03-16T06:59:13.000Z","dependencies_parsed_at":"2022-08-24T06:41:03.549Z","dependency_job_id":null,"html_url":"https://github.com/pceuropa/yii2-menu","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pceuropa%2Fyii2-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pceuropa%2Fyii2-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pceuropa%2Fyii2-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pceuropa%2Fyii2-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pceuropa","download_url":"https://codeload.github.com/pceuropa/yii2-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238183707,"owners_count":19430173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","drag","drop","navbar","yii2-extension"],"created_at":"2024-09-24T13:36:56.432Z","updated_at":"2025-02-10T20:31:47.445Z","avatar_url":"https://github.com/pceuropa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/pceuropa/yii2-menu/v/stable)](https://packagist.org/packages/pceuropa/yii2-menu) [![Total Downloads](https://poser.pugx.org/pceuropa/yii2-menu/downloads)](https://packagist.org/packages/pceuropa/yii2-menu) [![Latest Unstable Version](https://poser.pugx.org/pceuropa/yii2-menu/v/unstable)](https://packagist.org/packages/pceuropa/yii2-menu) [![License](https://poser.pugx.org/pceuropa/yii2-menu/license)](https://packagist.org/packages/pceuropa/yii2-menu)\n\nBootstrap Menu Builder for Yii2\n============================\n\n\n![preview](http://pceuropa.net/images/yii2-menu.png)\n\n[DEMO](https://pceuropa.net/menu/creator)\n\n## Features\n\n * Creating links, drop menus, line (diver) in the navbar-left and/or navbar-right\n * Sorting, editing, and deleting using drag and drop\n * No jQuery for drag and drop ([RubaXa/Sortable](https://github.com/RubaXa/Sortable))\n * CRUD operations by jQuery Ajax)\n \n## Installation\n```\ncomposer require pceuropa/yii2-menu dev-master\n```\n\nAdd the following code to config file Yii2\n```php\n'modules' =\u003e [\n\t'menu' =\u003e [\n            'class' =\u003e '\\pceuropa\\menu\\Menu',\n        ],\n\t]\n```\n\n## Configuration\n\n### 1. Create database schema\n\nMake sure that you have properly configured `db` application component and run the following command:\n\n```bash\n$ php yii migrate/up --migrationPath=@vendor/pceuropa/yii2-menu/migrations\n\n```\n\n\n### 2. Add the following code to view layout file Yii2\n```php\n\nuse pceuropa\\menu\\Menu;\n\nNavBar::begin(['brandLabel' =\u003e 'Brand','brandUrl' =\u003e Url::home(),]);\n\necho Nav::widget([ 'options' =\u003e ['class' =\u003e 'navbar-nav navbar-left'],\n\t\t\t\t\t'items' =\u003e Menu::NavbarLeft(1)  // argument is id of menu\n\t\t\t\t]);\t\n\t\t\t\t\t\necho Nav::widget([ 'options' =\u003e ['class' =\u003e 'navbar-nav navbar-right'],\n\t\t\t\t\t'items' =\u003e Menu::NavbarRight(1)\n\t\t\t\t]);\nNavBar::end();\n\n```\n### 3. Getting started\n/menu/creator\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpceuropa%2Fyii2-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpceuropa%2Fyii2-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpceuropa%2Fyii2-menu/lists"}