xandrkat / yii2-helpers
Extended Helpers for Yii2 Framework
Package info
github.com/xandrkat/yii2-helpers
Type:yii2-extension
pkg:composer/xandrkat/yii2-helpers
dev-master / 1.0.x-dev
2020-11-28 16:05 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-01 00:27:15 UTC
README
Extended Helpers for Yii2 Framework
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist xandrkat/yii2-helpers "*"
*************
composer require xandrkat/yii2-helpers
or add
"xandrkat/yii2-helpers": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code:
<?= \xandrkat\helpers\Html::beginDiv(['class' => 'sample-class']); ?> <?= \xandrkat\helpers\Html::beginP(['class' => 'sample-class']); ?> <?= \xandrkat\helpers\Html::begin<any>(['class' => 'sample-class']); ?> // content/any *** <?= \xandrkat\helpers\Bootstrap::endDiv(); ?> <?= \xandrkat\helpers\Bootstrap::endP(); ?> <?= \xandrkat\helpers\Bootstrap::end<any>(); ?> //or <?= \xandrkat\helpers\Html::div($content, $attribs); ?> <?= \xandrkat\helpers\Html::<any>($content, $attribs); ?>