PHPackages                             xutl/yii2-highlightjs-widget - 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. xutl/yii2-highlightjs-widget

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

xutl/yii2-highlightjs-widget
============================

The highlightjs extension for the Yii framework

2.0.1(8y ago)0216BSD-3-ClauseJavaScriptPHP &gt;=5.4.0

Since Jan 25Pushed 8y agoCompare

[ Source](https://github.com/xutl/yii2-highlightjs-widget)[ Packagist](https://packagist.org/packages/xutl/yii2-highlightjs-widget)[ RSS](/packages/xutl-yii2-highlightjs-widget/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

yii2-highlightjs-asset
======================

[](#yii2-highlightjs-asset)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist xutl/yii2-highlightjs-asset

```

or add

```
"xutl/yii2-highlightjs-asset": "~1.0.0"

```

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

Usage
-----

[](#usage)

```
use xutl\highlightjs\HighlightJsAsset;
HighlightJsAsset::register($this,'php');
$this->registerJs('hljs.initHighlightingOnLoad();');
```

```
use xutl\highlightjs\HighlightJs;

HighlightJs::begin([
    'format'=>$model->format
]);
echo Html::encode($model->content); ?>
HighlightJs::end()
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~43 days

Total

4

Last Release

3263d ago

Major Versions

1.0.1 → 2.0.02017-02-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/87b658aa9d49e0c80cfc609fa2b9dc6d615672b1d895f421f751945a0e394087?d=identicon)[larvacent](/maintainers/larvacent)

---

Top Contributors

[![xutl](https://avatars.githubusercontent.com/u/20939388?v=4)](https://github.com/xutl "xutl (11 commits)")

---

Tags

highlight.jsyii2

### Embed Badge

![Health badge](/badges/xutl-yii2-highlightjs-widget/health.svg)

```
[![Health](https://phpackages.com/badges/xutl-yii2-highlightjs-widget/health.svg)](https://phpackages.com/packages/xutl-yii2-highlightjs-widget)
```

###  Alternatives

[yiisoft/yii2-twig

The Twig integration for the Yii framework

1431.9M32](/packages/yiisoft-yii2-twig)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[devanych/yii2-cart

Shopping cart for Yii2

2011.2k](/packages/devanych-yii2-cart)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

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