Thankful to Krajee! BUY A COFFEEor to get more out of us.

The yii2-helpers package is a collection of very useful helper classes for various Yii 2 development projects.


Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)

The yii2-helpers extension can be installed automatically or manually using one of these options:

Composer Package Manager Recommended

Installation via Composer is the recommended and most easy option to install Krajee Yii2 extensions. You can install yii2-helpers via composer package manager. Either run:

$ php composer.phar require kartik-v/yii2-helpers "dev-master"

or add:

"kartik-v/yii2-helpers": "dev-master"

to your application's composer.json file.

Manual Install

You may also manually install the extension to your project (in case your composer install does not work). Just download the source ZIP or TAR ball and extract the extension asset files and folders into your project. You may need to install dependencies manually and also set the namespaces to the extensions in your Yii2 extensions configurations manually.

This helper class extends the Yii Html Helper by adding Bootstrap 5.x / 4.x / 3.x features and functionality.

View details and demos.


use kartik\helpers\Html;
echo Html::badge(Html::icon('user'));
This helper class extends the Yii Inflector Helper with more utility functions for Yii 2 developers.

View details and demos.


use kartik\helpers\Enum;
echo Enum::properize('Chris');


You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.

The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.

visitors to Krajee Yii2 Demos since 22-May-2017