{"id":13790300,"url":"https://github.com/NullRefExcep/yii2-admin","last_synced_at":"2025-05-12T07:31:48.573Z","repository":{"id":34423734,"uuid":"38356297","full_name":"NullRefExcep/yii2-admin","owner":"NullRefExcep","description":"Admin stuff for Yii2","archived":false,"fork":false,"pushed_at":"2020-03-29T14:53:49.000Z","size":184,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-07T21:44:46.047Z","etag":null,"topics":["yii2","yii2-admin","yii2-extension","yii2-modules"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullRefExcep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-01T07:24:33.000Z","updated_at":"2020-03-29T14:53:51.000Z","dependencies_parsed_at":"2022-08-17T20:45:37.308Z","dependency_job_id":null,"html_url":"https://github.com/NullRefExcep/yii2-admin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullRefExcep","download_url":"https://codeload.github.com/NullRefExcep/yii2-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253695213,"owners_count":21948836,"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":["yii2","yii2-admin","yii2-extension","yii2-modules"],"created_at":"2024-08-03T22:00:40.884Z","updated_at":"2025-05-12T07:31:44.312Z","avatar_url":"https://github.com/NullRefExcep.png","language":"PHP","funding_links":[],"categories":["Yii2 modules system (WIP):"],"sub_categories":[],"readme":"Yii2 Admin\n===============\n[![Latest Stable Version](https://poser.pugx.org/nullref/yii2-admin/v/stable)](https://packagist.org/packages/nullref/yii2-admin) [![Total Downloads](https://poser.pugx.org/nullref/yii2-admin/downloads)](https://packagist.org/packages/nullref/yii2-admin) [![Latest Unstable Version](https://poser.pugx.org/nullref/yii2-admin/v/unstable)](https://packagist.org/packages/nullref/yii2-admin) [![License](https://poser.pugx.org/nullref/yii2-admin/license)](https://packagist.org/packages/nullref/yii2-admin)\n\nModule for administration\n\nCheck extended version of this module at [this link](https://github.com/NullRefExcep/yii2-full-admin)\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist nullref/yii2-admin \"*\"\n```\n\nor add\n\n```\n\"nullref/yii2-admin\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\nThen You have run console command for install this module and run migrations:\n\n```\nphp yii module/install nullref/yii2-admin\nphp yii modules-migrate\n```\n\nPay attention that if you don't use our [application template](https://github.com/NullRefExcep/yii2-boilerplate) \nit needs to change config files structure to have ability run commands that show above.\n\nPlease check this [documentation section](https://github.com/NullRefExcep/yii2-core#config-structure)\n\n### Admin Menu\n\nFor adding items to admin menu you have to implement IAdminModule interface, e.g.:\n\n```php\npublic static function getAdminMenu()\n   {\n       return [\n           'label' =\u003e \\Yii::t('admin', 'Subscription'),\n           'icon' =\u003e 'envelope',\n           'items' =\u003e [\n               'emails' =\u003e ['label' =\u003e \\Yii::t('app', 'Subscribers'), 'icon' =\u003e 'envelope-o', 'url' =\u003e ['/subscription/email/index']],\n               'messages' =\u003e ['label' =\u003e \\Yii::t('app', 'Messages'), 'icon' =\u003e 'envelope-o', 'url' =\u003e ['/subscription/message/index']],\n           ]\n       ];\n   }\n```\n\n### Admin Controller\n\nIf you use `IAdminController` interface in controller, admin layout and default access rule will be set in controller before action.\n\n### Modules system \n\nThis module integrated in system which contain other useful components. [View details](https://github.com/NullRefExcep/yii2-core)\n\n### Overriding\n\nExample:\n\n```php\n/** module config **/\n\n'admin' =\u003e [\n   'class' =\u003e 'nullref\\admin\\Module',\n   'adminModel' =\u003e 'app\\models\\Admin', // admin model class\n   'controllerMap' =\u003e [  //controllers\n      'user' =\u003e 'app\\modules\\admin\\controllers\\UserController',\n      'main' =\u003e 'app\\modules\\admin\\controllers\\MainController',\n   ],\n   'components' =\u003e [  //menu builder\n      'menuBuilder' =\u003e 'app\\\\components\\\\MenuBuilder',\n   ],\n],\n```\n\nAnd [translations](https://github.com/NullRefExcep/yii2-core#translation-overriding)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNullRefExcep%2Fyii2-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNullRefExcep%2Fyii2-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNullRefExcep%2Fyii2-admin/lists"}