PHPackages                             kartik-v/yii2-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kartik-v/yii2-helpers

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

kartik-v/yii2-helpers
=====================

A collection of useful helper functions for Yii Framework 2.0

v1.3.9(7y ago)883.0M↓10.4%4420BSD-3-ClausePHP

Since Jul 17Pushed 2y ago7 watchersCompare

[ Source](https://github.com/kartik-v/yii2-helpers)[ Packagist](https://packagist.org/packages/kartik-v/yii2-helpers)[ Docs](https://github.com/kartik-v/yii2-helpers)[ RSS](/packages/kartik-v-yii2-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (20)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 yii2-helpers ---

 [ ![Donate](https://camo.githubusercontent.com/4af77d425ca202e55ab3d711b438e238ded194735bc345a019ac060e03e26227/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67) ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal")
================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-helpers--------------------)

[![Latest Stable Version](https://camo.githubusercontent.com/25989ba8b2d87154b372919575d3c135e4551fb97b9099c9ee12888442cfd58f/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d68656c706572732f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-helpers)[![Latest Unstable Version](https://camo.githubusercontent.com/c6d32bf5b25963e97fd0211b9ee9b10c28b1b88c109209249644d0f227468893/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d68656c706572732f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-helpers)[![License](https://camo.githubusercontent.com/485112877cf946ea49b136b6d9c8856322a6911ba895ff07d21ddbd97223c9a7/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d68656c706572732f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-helpers)[![Total Downloads](https://camo.githubusercontent.com/1dd78641a4c8189d1338399b420d3952013a252480d6927ec2d294e97c6cedf0/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d68656c706572732f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-helpers)[![Monthly Downloads](https://camo.githubusercontent.com/a56e825d6509b2dc597e7047ff1e69a25824aa45b690df79d50a8bf7fcbeec31/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d68656c706572732f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-helpers)[![Daily Downloads](https://camo.githubusercontent.com/fd197dfb3e4c0051b79f6309db780ae4305ad4f301485da6748de0e93be13e3f/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d68656c706572732f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-helpers)

This extension is a collection of useful helper functions for Yii Framework 2.0.

### Html Class

[](#html-class)

[`VIEW DEMO`](http://demos.krajee.com/helper-functions/html)

This class extends the [Yii Html Helper](https://github.com/yiisoft/yii2/blob/master/framework/helpers/Html.php) to incorporate additional HTML markup functionality and features available in [Bootstrap 3.x / 4.x](http://getbootstrap.com/). The helper functions available in this class are:

- Icon
- Label
- Badge
- Page Header
- Well
- Close Button
- Caret
- Jumbotron
- Abbreviation
- Blockquote
- Address
- List Group
- Panel
- Media
- Media List
- Checkbox Button Group
- Radio Button Group

### Enum Class

[](#enum-class)

[`VIEW DEMO`](http://demos.krajee.com/helper-functions/enum)

This class extends the [Yii Inflector Helper](https://github.com/yiisoft/yii2/blob/master/framework/helpers/Inflector.php) with more utility functions for Yii developers. The helper functions available in this class are:

- Is Empty
- In Array
- Properize
- Time Elapsed
- Time To String
- Time Remaining
- Format Bytes
- Number to Words
- Year List
- Month List
- Day List
- Date List
- Time List
- Boolean List
- Get PHP Data Type
- Array to HTML Table
- IP Address

### Demo

[](#demo)

You can see a [demonstration here](http://demos.krajee.com/helpers) on usage of these functions with documentation and examples.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

> Note: Check the [composer.json](https://github.com/kartik-v/yii2-helpers/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) 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.

Usage
-----

[](#usage)

```
// 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');
```

License
-------

[](#license)

**yii2-helpers** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity58

Moderate usage in the ecosystem

Community39

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 79.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~128 days

Recently: every ~258 days

Total

13

Last Release

2778d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3592619?v=4)[Kartik Visweswaran](/maintainers/kartik-v)[@kartik-v](https://github.com/kartik-v)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (117 commits)")[![lherry](https://avatars.githubusercontent.com/u/9193408?v=4)](https://github.com/lherry "lherry (5 commits)")[![maxlord](https://avatars.githubusercontent.com/u/5399119?v=4)](https://github.com/maxlord "maxlord (3 commits)")[![DaveFerger](https://avatars.githubusercontent.com/u/1530856?v=4)](https://github.com/DaveFerger "DaveFerger (2 commits)")[![wbraganca](https://avatars.githubusercontent.com/u/1946359?v=4)](https://github.com/wbraganca "wbraganca (2 commits)")[![moysoft](https://avatars.githubusercontent.com/u/9723401?v=4)](https://github.com/moysoft "moysoft (2 commits)")[![toriphes](https://avatars.githubusercontent.com/u/4192159?v=4)](https://github.com/toriphes "toriphes (2 commits)")[![tuyakhov](https://avatars.githubusercontent.com/u/7713205?v=4)](https://github.com/tuyakhov "tuyakhov (2 commits)")[![nepster-web](https://avatars.githubusercontent.com/u/5681979?v=4)](https://github.com/nepster-web "nepster-web (1 commits)")[![RichWeber](https://avatars.githubusercontent.com/u/1702252?v=4)](https://github.com/RichWeber "RichWeber (1 commits)")[![ulrichmathes](https://avatars.githubusercontent.com/u/26324456?v=4)](https://github.com/ulrichmathes "ulrichmathes (1 commits)")[![viqtor](https://avatars.githubusercontent.com/u/3830201?v=4)](https://github.com/viqtor "viqtor (1 commits)")[![cshehadi](https://avatars.githubusercontent.com/u/639996?v=4)](https://github.com/cshehadi "cshehadi (1 commits)")[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (1 commits)")[![dkushnikov](https://avatars.githubusercontent.com/u/1129911?v=4)](https://github.com/dkushnikov "dkushnikov (1 commits)")[![dungphanxuan](https://avatars.githubusercontent.com/u/10725732?v=4)](https://github.com/dungphanxuan "dungphanxuan (1 commits)")[![fingal56](https://avatars.githubusercontent.com/u/10837659?v=4)](https://github.com/fingal56 "fingal56 (1 commits)")[![gvasilopulos](https://avatars.githubusercontent.com/u/7271039?v=4)](https://github.com/gvasilopulos "gvasilopulos (1 commits)")[![henkkao](https://avatars.githubusercontent.com/u/2064118?v=4)](https://github.com/henkkao "henkkao (1 commits)")[![mbenedek](https://avatars.githubusercontent.com/u/1043048?v=4)](https://github.com/mbenedek "mbenedek (1 commits)")

---

Tags

helperyii2extensionyiibootstraputilities

### Embed Badge

![Health badge](/badges/kartik-v-yii2-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/kartik-v-yii2-helpers/health.svg)](https://phpackages.com/packages/kartik-v-yii2-helpers)
```

###  Alternatives

[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)[kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

433.8M13](/packages/kartik-v-yii2-sortable)[kartik-v/yii2-icons

Set of icon frameworks for use in Yii Framework 2.0

73970.3k34](/packages/kartik-v-yii2-icons)[kartik-v/yii2-datecontrol

Date control module allowing separation of formats for View and Model for Yii Framework 2.0

551.5M36](/packages/kartik-v-yii2-datecontrol)[kartik-v/yii2-widget-affix

A scrollspy and affixed enhanced navigation to highlight page sections (sub repo split from yii2-widgets)

153.8M3](/packages/kartik-v-yii2-widget-affix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
