PHP code example of johnsnook / yii2-stacked

1. Go to this page and download the library: Download johnsnook/yii2-stacked library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

johnsnook / yii2-stacked example snippets



	use johnsnook\stacked\StackedWidget;
	use johnsnook\stacked\PanelWidget;

...

    StackedWidget::begin([
        'gutterSize' => 35,
        'containerOptions' => ['style' => 'margin-top:40px; margin-bottom:40px;'],
    ]);
    /** the panel widget makes nice and easy bootstrap 3 panels */
    PanelWidget::begin([
        'containerOptions' => ['class' => 'panel-success'],
        'title' => "Panel #1"
    ]);
bash
php composer.phar