PHPackages                             muhsamsul/yii2-treeimage - 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. muhsamsul/yii2-treeimage

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

muhsamsul/yii2-treeimage
========================

View tree with organizational chart. Dependencies with kartik tree manager

34901PHP

Since Mar 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/muhsamsul/yii2-treeimage)[ Packagist](https://packagist.org/packages/muhsamsul/yii2-treeimage)[ RSS](/packages/muhsamsul-yii2-treeimage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-treeimage
==============

[](#yii2-treeimage)

View tree with organizational chart. Dependencies with kartik tree manager

View example
------------

[](#view-example)

[![example](https://raw.githubusercontent.com/muhsamsul/yii2-treeimage/master/example/Screenshot%20from%202016-03-22%2018%3A37%3A05.png)](https://raw.githubusercontent.com/muhsamsul/yii2-treeimage/master/example/Screenshot%20from%202016-03-22%2018%3A37%3A05.png)

Installation
------------

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist muhsamsul/yii2-treeimage "dev-master"

```

or add

```
"muhsamsul/yii2-treeimage": "dev-master"

```

to the require section of your `composer.json` file.

Migration database or import tbl\_tree.sql
------------------------------------------

[](#migration-database-or-import-tbl_treesql)

yii migrate/up --migrationPath=@vendor/muhsamsul/yii2-treeimage/migrations

or import sql file on directory = vendor/muhsamsul/yii2-treeimage/db/tbl\_tree.sql

generete model with Table Prefix

How to create new and update data
---------------------------------

[](#how-to-create-new-and-update-data)

usage kartik tree-manager [yii2-tree-manager](https://github.com/kartik-v/yii2-tree-manager)

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

in your view file:

```
use app\models\Tree;
use muhsamsul\treeimage\TreeImage;
