Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NullRefExcep/yii2-category
Simple package for taxonomy management
https://github.com/NullRefExcep/yii2-category
yii2 yii2-extension yii2-modules
Last synced: 2 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T23:40:59.000Z (almost 5 years ago)
- Last Synced: 2024-07-30T06:36:39.752Z (2 months ago)
- Topics: yii2, yii2-extension, yii2-modules
- Language: PHP
- Homepage:
- Size: 7.02 MB
- Stars: 11
- Watchers: 6
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 Category
===============
[![Latest Stable Version](https://poser.pugx.org/nullref/yii2-category/v/stable)](https://packagist.org/packages/nullref/yii2-category) [![Total Downloads](https://poser.pugx.org/nullref/yii2-category/downloads)](https://packagist.org/packages/nullref/yii2-category) [![Latest Unstable Version](https://poser.pugx.org/nullref/yii2-category/v/unstable)](https://packagist.org/packages/nullref/yii2-category) [![License](https://poser.pugx.org/nullref/yii2-category/license)](https://packagist.org/packages/nullref/yii2-category)Module for categories (WIP)
![](https://raw.githubusercontent.com/NullRefExcep/yii2-category/master/docs/assets/screen-demo.gif)
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)
![](https://raw.githubusercontent.com/NullRefExcep/yii2-category/master/docs/assets/core-install.gif)
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',...],
...
```