PHPackages                             grenhaz/yii2-highlight - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. grenhaz/yii2-highlight

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

grenhaz/yii2-highlight
======================

Yii2 Highlight wrapper

1.0.0(8y ago)023MITCSS

Since Mar 17Pushed 8y agoCompare

[ Source](https://github.com/grenhaz/yii2-highlight)[ Packagist](https://packagist.org/packages/grenhaz/yii2-highlight)[ RSS](/packages/grenhaz-yii2-highlight/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Highlight wrapper for Yii2.
===========================

[](#highlight-wrapper-for-yii2)

See:

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist grenhaz/yii2-highlight

```

or add

```
"grenhaz/yii2-highlight": "~1.0.0"
```

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

Basic Usage
-----------

[](#basic-usage)

```
use yii\helpers\Json;
use grenhaz\highlight\HighlightWidget;

echo HighlightWidget::widget([
    "language" => "json",
    "code" => Json::encode( Json::decode( $data ), JSON_PRETTY_PRINT )
]);
```

Example
-------

[](#example)

[![Example](example.png?raw=true "Example")](example.png?raw=true)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

2978d ago

### Community

Maintainers

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

---

Top Contributors

[![grenhaz](https://avatars.githubusercontent.com/u/36473174?v=4)](https://github.com/grenhaz "grenhaz (10 commits)")

---

Tags

highlightphpyii2loglogging

### Embed Badge

![Health badge](/badges/grenhaz-yii2-highlight/health.svg)

```
[![Health](https://phpackages.com/badges/grenhaz-yii2-highlight/health.svg)](https://phpackages.com/packages/grenhaz-yii2-highlight)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k14.7M71](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)

PHPackages © 2026

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