PHPackages                             izisoft/yii2-krajee-base - 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. [Framework](/categories/framework)
4. /
5. izisoft/yii2-krajee-base

ActiveYii2-extension[Framework](/categories/framework)

izisoft/yii2-krajee-base
========================

Base library and foundation components for all Yii2 Krajee extensions.

017PHP

Since May 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/izisoft/yii2-krajee-base)[ Packagist](https://packagist.org/packages/izisoft/yii2-krajee-base)[ RSS](/packages/izisoft-yii2-krajee-base/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-krajee-base
================

[](#yii2-krajee-base)

[![Stable Version](https://camo.githubusercontent.com/c6937e84037d4518f50bcbbc8a4306087dee33c968c7b04f8192bc3f2dfd9815/68747470733a2f2f706f7365722e707567782e6f72672f697a69736f66742f796969322d6b72616a65652d626173652f762f737461626c65)](https://packagist.org/packages/izisoft/yii2-krajee-base)[![Unstable Version](https://camo.githubusercontent.com/c2b3ed9e254c82172a4d0920ab8467770a44dd6e8b7037534c5df740cc95584f/68747470733a2f2f706f7365722e707567782e6f72672f697a69736f66742f796969322d6b72616a65652d626173652f762f756e737461626c65)](https://packagist.org/packages/izisoft/yii2-krajee-base)[![License](https://camo.githubusercontent.com/f9bbb10b0111261dfd51b955d04ed2a7e1c582da0b31247822e698a6826918a9/68747470733a2f2f706f7365722e707567782e6f72672f697a69736f66742f796969322d6b72616a65652d626173652f6c6963656e7365)](https://packagist.org/packages/izisoft/yii2-krajee-base)[![Total Downloads](https://camo.githubusercontent.com/c01506e110779fbe757ba1145d02cf110dc7e247314a7ec447aff53175b5bf56/68747470733a2f2f706f7365722e707567782e6f72672f697a69736f66742f796969322d6b72616a65652d626173652f646f776e6c6f616473)](https://packagist.org/packages/izisoft/yii2-krajee-base)[![Monthly Downloads](https://camo.githubusercontent.com/334fb26e56dace879ee1baea006cb33f5edc13eb86ade087527a98304d13c41d/68747470733a2f2f706f7365722e707567782e6f72672f697a69736f66742f796969322d6b72616a65652d626173652f642f6d6f6e74686c79)](https://packagist.org/packages/izisoft/yii2-krajee-base)[![Daily Downloads](https://camo.githubusercontent.com/21d5f49acc2c0ffa2d4650cd99366c8a6b5b1cd73e6072a845f1e4add84a6108/68747470733a2f2f706f7365722e707567782e6f72672f697a69736f66742f796969322d6b72616a65652d626173652f642f6461696c79)](https://packagist.org/packages/izisoft/yii2-krajee-base)

This is a base library with set of foundation classes and components used by all [Yii2 extensions by Krajee](http://demos.krajee.com). One can use this base library during creation of one's own extensions if needed.

> NOTE: This extension depends on the [yiisoft/yii2-bootstrap](https://github.com/yiisoft/yii2/tree/master/extensions/bootstrap) extension. Check the [composer.json](https://github.com/izisoft/yii2-krajee-base/blob/master/composer.json) for this extension's requirements and dependencies.

Why this extension?
-------------------

[](#why-this-extension)

To ensure a leaner code base / foundation component for use in all Krajee extensions (e.g. yii2-widgets, yii2-datecontrol, yii2-grid, yii2-dynagrid etc.). This should allow most developers to plug and play components only they need, without needing the complete suite of widgets. For example, this mitigates [this issue](https://github.com/izisoft/yii2-grid/issues/123).

Latest Release
--------------

[](#latest-release)

The latest version of the extension is v1.8.9. Refer the [CHANGE LOG](https://github.com/izisoft/yii2-krajee-base/blob/master/CHANGE.md) for details.

Extension Classes
-----------------

[](#extension-classes)

### [Module](https://github.com/izisoft/yii2-krajee-base/blob/master/Module.php)

[](#module)

Extends [Yii Module](https://github.com/yiisoft/yii2/blob/master/framework/base/Module.php) class for Krajee's Yii2 widgets and usage with translation properties enabled.

### [Widget](https://github.com/izisoft/yii2-krajee-base/blob/master/Widget.php)

[](#widget)

Extends [Yii Widget](https://github.com/yiisoft/yii2/blob/master/framework/base/Widget.php) class for Krajee's Yii2 widgets and usage with bootstrap CSS framework.

### [InputWidget](https://github.com/izisoft/yii2-krajee-base/blob/master/InputWidget.php)

[](#inputwidget)

Extends [Yii InputWidget](https://github.com/yiisoft/yii2/blob/master/framework/widgets/InputWidget.php) class for Krajee's Yii2 widgets and usage with bootstrap CSS framework. With release v1.3.0, the Input widget automatically now attaches the following HTML5 data attribute for each input that registers jQuery plugins via `registerPlugin` method:

- `data-krajee-{name}` the client options of the plugin. The tag `{name}` will be replaced with the registered jQuery plugin name (e.g. `select2`, `typeahead` etc.).

### [TranslationTrait](https://github.com/izisoft/yii2-krajee-base/blob/master/TranslationTrait.php)

[](#translationtrait)

A trait for handling translation functionality using Yii's i18n components.

### [WidgetTrait](https://github.com/izisoft/yii2-krajee-base/blob/master/WidgetTrait.php)

[](#widgettrait)

A trait for Krajee widgets including prebuilt methods for plugin registration.

### [AssetBundle](https://github.com/izisoft/yii2-krajee-base/blob/master/AssetBundle.php)

[](#assetbundle)

Extends [Yii AssetBundle](https://github.com/yiisoft/yii2/blob/master/framework/web/AssetBundle.php) class for Krajee's Yii2 widgets with enhancements for using minimized CSS and JS based on debug mode.

### [PluginAssetBundle](https://github.com/izisoft/yii2-krajee-base/blob/master/PluginAssetBundle.php)

[](#pluginassetbundle)

Extension of the above [AssetBundle](https://github.com/izisoft/yii2-krajee-base/blob/master/AssetBundle.php) to include dependency on Bootstrap javascript plugins.

### [AnimateAsset](https://github.com/izisoft/yii2-krajee-base/blob/master/AnimateAsset.php)

[](#animateasset)

An asset bundle for loading various CSS3 animations and effects.

### [Html5Input](https://github.com/izisoft/yii2-krajee-base/blob/master/Html5Input.php)

[](#html5input)

A modified input widget for rendering HTML5 inputs with bootstrap styling and input group addons for Krajee's Yii 2 extensions.

### [Config](https://github.com/izisoft/yii2-krajee-base/blob/master/Config.php)

[](#config)

A global configuration and validation helper class for usage across Krajee's Yii 2 extensions.

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

[](#installation)

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

> Note: 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 izisoft/yii2-krajee-base "dev-master"

```

or add

```
"izisoft/yii2-krajee-base": "dev-master"

```

to the `require` section of your `composer.json` file.

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2edf0df855a366ea51f96bd910a60c87320c973460ccc273a7e448ae32eedb65?d=identicon)[zinzinx8](/maintainers/zinzinx8)

---

Top Contributors

[![zinzinx8](https://avatars.githubusercontent.com/u/13455399?v=4)](https://github.com/zinzinx8 "zinzinx8 (3 commits)")

### Embed Badge

![Health badge](/badges/izisoft-yii2-krajee-base/health.svg)

```
[![Health](https://phpackages.com/badges/izisoft-yii2-krajee-base/health.svg)](https://phpackages.com/packages/izisoft-yii2-krajee-base)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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