1. Go to this page and download the library: Download wdmg/yii2-widgets 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/ */
wdmg / yii2-widgets example snippets
use wdmg\widgets\NavContents;
$content = '<h1>Header H1</h1><p>Some text, some text...</p><p>Some text, some text...</p>'
use wdmg\widgets\MenuContents;
$content = '<h1 id="test-header" class="header">Header H1</h1><p>Some text, some text...</p><p>Some text, some text...</p>'