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(9y 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 today

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 52% 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

3311d 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

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[yiisoft/yii2-app-advanced

Yii 2 Advanced Project Template

1.7k960.6k5](/packages/yiisoft-yii2-app-advanced)[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

44912.1M264](/packages/yiisoft-yii2-redis)[yiisoft/yii2-httpclient

HTTP client extension for the Yii framework

43011.4M323](/packages/yiisoft-yii2-httpclient)[yiisoft/yii2-debug

The debugger extension for the Yii framework

20324.2M616](/packages/yiisoft-yii2-debug)[yiisoft/yii2-app-basic

Yii 2 Basic Project Template

6761.8M8](/packages/yiisoft-yii2-app-basic)

PHPackages © 2026

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