xandrkat / yii2-helpers
Extended Helpers for Yii2 Framework
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-03-29 00:49:23 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); ?>