Gridstack.js widget for Yii2

Installs: 10 694

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 3

Forks: 5

Open Issues: 3


v1.1 2015-05-04 14:38 UTC

This package is not auto-updated.

Last update: 2024-05-25 16:22:53 UTC


This extension provides the Gridstack.js integration for the Yii2 framework.

Latest Stable Version Total Downloads Latest Unstable Version License


The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fedemotta/yii2-gridstack "*"

or add

"fedemotta/yii2-gridstack": "*"

to the require section of your composer.json file.


Use Gridstack.js as any other other Yii2 widget.

use fedemotta\gridstack\Gridstack;
$gridstack = Gridstack::begin([
        'cellHeight'=> 80,
        'verticalMargin'=> 10,

    <div class="grid-stack-item-content"></div>

    <div class="grid-stack-item-content"></div>


You can also use Gridstack.js in the JavaScript layer of your application. To achieve this, you need to include Gridstack as a dependency of your Asset file.

public $depends = [