PHPackages                             kartik-v/yii2-detail-view - 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. [Templating &amp; Views](/categories/templating)
4. /
5. kartik-v/yii2-detail-view

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

kartik-v/yii2-detail-view
=========================

Enhanced Yii 2 Detail View widget with special Bootstrap styles, ability to edit data, and more.

v1.8.7(4y ago)701.1M↓14.2%56[1 issues](https://github.com/kartik-v/yii2-detail-view/issues)20BSD-3-ClausePHP

Since Jul 16Pushed 4y ago9 watchersCompare

[ Source](https://github.com/kartik-v/yii2-detail-view)[ Packagist](https://packagist.org/packages/kartik-v/yii2-detail-view)[ Docs](https://github.com/kartik-v/yii2-detail-view)[ RSS](/packages/kartik-v-yii2-detail-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (32)Used By (20)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 yii2-detail-view ---

 [![Donate](https://camo.githubusercontent.com/0336bc43d88554a3f2d6c74dddf312bc2c65c2eacca70d83ae40f5567098d00e/68747470733a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal") [![kartikv](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/kartikv "Buy me a coffee")
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-detail-view------------------)

[![Stable Version](https://camo.githubusercontent.com/0a411cb4f01a1667591633c87336b971688f811f0eafcc7f8f01b1c21a2380d8/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64657461696c2d766965772f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-detail-view)[![Unstable Version](https://camo.githubusercontent.com/7c9e91738337d67d886bcab8cb877abd0f9bedae401cab995c0a599d8433eeb4/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64657461696c2d766965772f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-detail-view)[![License](https://camo.githubusercontent.com/053dc8de864b4f7a7a5dff777726e93249c9078839ca2f73de1f36d42c0e511a/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64657461696c2d766965772f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-detail-view)[![Total Downloads](https://camo.githubusercontent.com/091bf18e882c2196dd9a89db0f22f5c0bac42cbbd7f2264ea9e64d5bb790e083/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64657461696c2d766965772f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-detail-view)[![Monthly Downloads](https://camo.githubusercontent.com/d9ea6e4128c864d99ba86d7792aad24040f85839468be40b9a0fb378f81689fc/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64657461696c2d766965772f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-detail-view)[![Daily Downloads](https://camo.githubusercontent.com/28421408a92549c1d6798bcdcf3dca70fc1897789a0ebb1c38828634295c0801/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64657461696c2d766965772f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-detail-view)

An extended Yii2 DetailView with many additional features. Extends the Yii DetailView to support multi columnar rows and work in both VIEW and EDIT modes. Accelerates your development by using a single configuration of attributes for both VIEW and EDIT. The extension also includes easier methods to style your detail view widget cells, data, form inputs, widgets, and columns (more specifically for Bootstrap 3). The widget by default can be styled within a Bootstrap 3 panel with a buttons toolbar to toggle modes and control your data. Refer [detailed documentation](http://demos.krajee.com/detail-view) and/or a [complete demo](http://demos.krajee.com/detail-view-demo).

### Latest Release

[](#latest-release)

Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-detail-view/blob/master/CHANGE.md) for details of changes to various releases.

> NOTE: Bootstrap 5.x support is added since v1.8.4. The extension includes a BC Breaking change with v1.7.0. With this release, the `template` property of the yii core DetailView is not anymore supported. One can use `rowOptions`, `labelColOptions`, `valueColOptions` at the widget level or widget `attributes` level to configure advanced layout functionality.

### Docs &amp; Demo

[](#docs--demo)

You can see detailed [documentation](http://demos.krajee.com/detail-view), [demonstration](http://demos.krajee.com/detail-view-demo) and API [code documentation](https://docs.krajee.com/kartik-detail-detailview) on usage of the extension.

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

[](#installation)

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

> Note: Check the [composer.json](https://github.com/kartik-v/yii2-detail-view/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

Either run

```
$ php composer.phar require kartik-v/yii2-detail-view "@dev"

```

or add

```
"kartik-v/yii2-detail-view": "@dev"

```

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

Usage
-----

[](#usage)

```
use kartik\detail\DetailView;
echo DetailView::widget([
    'model'=>$model,
    'condensed'=>true,
    'hover'=>true,
    'mode'=>DetailView::MODE_VIEW,
    'panel'=>[
        'heading'=>'Book # ' . $model->id,
        'type'=>DetailView::TYPE_INFO,
    ],
    'attributes'=>[
        'code',
        'name',
        ['attribute'=>'publish_date', 'type'=>DetailView::INPUT_DATE],
    ]
]);
```

License
-------

[](#license)

**yii2-detail-view** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity55

Moderate usage in the ecosystem

Community41

Growing community involvement

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 81.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Recently: every ~164 days

Total

30

Last Release

1537d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3592619?v=4)[Kartik Visweswaran](/maintainers/kartik-v)[@kartik-v](https://github.com/kartik-v)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (136 commits)")[![CristianTan](https://avatars.githubusercontent.com/u/8394534?v=4)](https://github.com/CristianTan "CristianTan (3 commits)")[![dogrocker](https://avatars.githubusercontent.com/u/8379027?v=4)](https://github.com/dogrocker "dogrocker (2 commits)")[![drsdre](https://avatars.githubusercontent.com/u/809827?v=4)](https://github.com/drsdre "drsdre (2 commits)")[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (2 commits)")[![muhammadcahya](https://avatars.githubusercontent.com/u/4241620?v=4)](https://github.com/muhammadcahya "muhammadcahya (2 commits)")[![pappfer](https://avatars.githubusercontent.com/u/738623?v=4)](https://github.com/pappfer "pappfer (2 commits)")[![SamMousa](https://avatars.githubusercontent.com/u/547021?v=4)](https://github.com/SamMousa "SamMousa (2 commits)")[![polo85](https://avatars.githubusercontent.com/u/9259609?v=4)](https://github.com/polo85 "polo85 (1 commits)")[![thyseus](https://avatars.githubusercontent.com/u/654271?v=4)](https://github.com/thyseus "thyseus (1 commits)")[![TonisOrmisson](https://avatars.githubusercontent.com/u/6357451?v=4)](https://github.com/TonisOrmisson "TonisOrmisson (1 commits)")[![ToRvaLDz](https://avatars.githubusercontent.com/u/1643636?v=4)](https://github.com/ToRvaLDz "ToRvaLDz (1 commits)")[![ToSchQLB](https://avatars.githubusercontent.com/u/4181152?v=4)](https://github.com/ToSchQLB "ToSchQLB (1 commits)")[![wxs77577](https://avatars.githubusercontent.com/u/1990059?v=4)](https://github.com/wxs77577 "wxs77577 (1 commits)")[![Ancor-dev](https://avatars.githubusercontent.com/u/180199345?v=4)](https://github.com/Ancor-dev "Ancor-dev (1 commits)")[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (1 commits)")[![annevandervelden](https://avatars.githubusercontent.com/u/9163281?v=4)](https://github.com/annevandervelden "annevandervelden (1 commits)")[![dmitriyha](https://avatars.githubusercontent.com/u/3742709?v=4)](https://github.com/dmitriyha "dmitriyha (1 commits)")[![Edofre](https://avatars.githubusercontent.com/u/710429?v=4)](https://github.com/Edofre "Edofre (1 commits)")[![educationisenemy](https://avatars.githubusercontent.com/u/9478999?v=4)](https://github.com/educationisenemy "educationisenemy (1 commits)")

---

Tags

gridyii2extensionwidgetformdetaildetail view

### Embed Badge

![Health badge](/badges/kartik-v-yii2-detail-view/health.svg)

```
[![Health](https://phpackages.com/badges/kartik-v-yii2-detail-view/health.svg)](https://phpackages.com/packages/kartik-v-yii2-detail-view)
```

###  Alternatives

[kartik-v/yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

3279.7M191](/packages/kartik-v-yii2-widget-select2)[kartik-v/yii2-grid

Yii 2 GridView on steroids. Various enhancements and utilities for the Yii 2.0 GridView widget.

5576.6M179](/packages/kartik-v-yii2-grid)[kartik-v/yii2-widget-activeform

Enhanced Yii2 active-form and active-field with full bootstrap styling support (sub repo split from yii2-widgets).

647.3M62](/packages/kartik-v-yii2-widget-activeform)[kartik-v/yii2-widgets

Collection of useful widgets for Yii Framework 2.0 extending functionalities for Bootstrap

5593.9M116](/packages/kartik-v-yii2-widgets)[kartik-v/yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.

743.1M27](/packages/kartik-v-yii2-dynagrid)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
