This extension is a collection of useful helper functions for Yii Framework 2.0.
This class extends the Yii Html Helper to incorporate additional HTML markup functionality and features available in Bootstrap 3.x / 4.x. The helper functions available in this class are:
This class extends the Yii Inflector Helper with more utility functions for Yii developers. The helper functions available in this class are:
You can see a demonstration here on usage of these functions with documentation and examples.
The preferred way to install this extension is through composer.
Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
$ php composer.phar require kartik-v/yii2-helpers "dev-master"
or add
"kartik-v/yii2-helpers": "dev-master"
to the require
section of your composer.json
file.
// add this to your code to use these classes
use kartik\helpers\Html;
use kartik\helpers\Enum;
// examples of usage
echo Html::icon('cloud');
echo Enum::properize('Chris');
yii2-helpers is released under the BSD-3-Clause License. See the bundled LICENSE.md
for details.
yii2-helpers
Date: 09-Oct-2018
Html::media
and Html::mediaList
for Bootstrap 4.x.Date: 27-Sep-2018
Date: 26-Sep-2018
src
directory.userIP
function.a moment ago
readout.Date: 26-Nov-2016
item
parsing when set as Closure.Date: 12-Dec-2015
Date: 22-Oct-2015
checkboxButtonGroup
radioButtonGroup
activeCheckboxButtonGroup
activeRadioButtonGroup
Date: 09-Sep-2015
timeInterval
method in addition to timeElapsed
.Date: 15-Jun-2015
Date: 23-Jan-2015
genCalList
.timeList
method to include ranges and intervals.dayList
, monthList
and dateList
.Date: 10-Nov-2014
Date: 12-Aug-2014
inArray
helper method - much faster than the inbuilt PHP in_array
methodDate: 01-Mar-2014
Initial release
Comments