https://github.com/NullRefExcep/yii2-category
Simple package for taxonomy management
https://github.com/NullRefExcep/yii2-category
yii2 yii2-extension yii2-modules
Last synced: 11 days ago
JSON representation
Simple package for taxonomy management
- Host: GitHub
- URL: https://github.com/NullRefExcep/yii2-category
- Owner: NullRefExcep
- Created: 2015-07-03T10:48:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T23:40:59.000Z (over 5 years ago)
- Last Synced: 2025-04-11T19:51:45.454Z (about 1 month ago)
- Topics: yii2, yii2-extension, yii2-modules
- Language: PHP
- Homepage:
- Size: 7.02 MB
- Stars: 11
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 Category
===============
[](https://packagist.org/packages/nullref/yii2-category) [](https://packagist.org/packages/nullref/yii2-category) [](https://packagist.org/packages/nullref/yii2-category) [](https://packagist.org/packages/nullref/yii2-category)Module for categories (WIP)

Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist nullref/yii2-category "*"
```or add
```
"nullref/yii2-category": "*"
```to the require section of your `composer.json` file.
Then You have run console command for install this module:
```
php yii module/install nullref/yii2-category
```and module will be added to your application config (`@app/config/installed_modules.php`)
Pay attention that if you don't use our [application template](https://github.com/NullRefExcep/yii2-boilerplate)
it needs to change config files structure to have ability run commands that show above.Please check this [documentation section](https://github.com/NullRefExcep/yii2-core#config-structure)

Module integration
------------------If you need additional information about integration current module with your project, please check [example folder](https://github.com/NullRefExcep/yii2-category/tree/master/docs/examples)
Using with admin module
----------------------------You can use this module with modules:
- [Yii2 Admin](https://github.com/NullRefExcep/yii2-admin).
- [Yii2 Full Admin](https://github.com/NullRefExcep/yii2-full-admin).Models overriding
-----------------```php
'category' => [
'class' => 'nullref\category\Module',
'classMap' => [
'Category' => 'app\models\Category',
'CategoryQuery' => 'app\models\CategoryQuery',
],
],
```Also you have to add module to bootstrap list of application:
```php
...
'bootstrap' => ['category',...],
...
```