PHPackages                             assertchris/laravel-highlight-web-component - 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. assertchris/laravel-highlight-web-component

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

assertchris/laravel-highlight-web-component
===========================================

A Laravel plugin with a custom Web Component for highlighting code, using tempest/highlight.

1.0.2(7mo ago)122MITPHPPHP ^8.3

Since May 4Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/assertchris/laravel-highlight-web-component)[ Packagist](https://packagist.org/packages/assertchris/laravel-highlight-web-component)[ Docs](https://github.com/assertchris/w-code)[ RSS](/packages/assertchris-laravel-highlight-web-component/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Highlight Web Component
===============================

[](#laravel-highlight-web-component)

This is a Laravel plugin which introduces a custom [Web Component](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) for highlighting code using [tempest/highlight](https://github.com/tempestphp/highlight).

To get started:

```
composer require assertchris/laravel-highlight-web-component
```

Import and use the custom component:

```
import Component from '../../vendor/assertchris/laravel-highlight-web-component/src/component.js';
customElements.define('w-code', Component);
```

Use it in your templates:

```

    print "hello world";

```

Warning

You must still have [Axios](https://axios-http.com) in your Laravel project for this to work.

Configuration
-------------

[](#configuration)

You can view and customise the config by publishing the vendor config files:

```
php artisan vendor:publish --provider=AC\\LaravelHighlightWebComponent\\Provider
```

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance67

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~255 days

Total

3

Last Release

224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00089084814b5b79cd35b9f501bcc48d74c5afb2cb4703562a82e081f31c843c?d=identicon)[assertchris](/maintainers/assertchris)

---

Top Contributors

[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (5 commits)")

### Embed Badge

![Health badge](/badges/assertchris-laravel-highlight-web-component/health.svg)

```
[![Health](https://phpackages.com/badges/assertchris-laravel-highlight-web-component/health.svg)](https://phpackages.com/packages/assertchris-laravel-highlight-web-component)
```

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[anlutro/l4-settings

Persistent settings in Laravel.

9312.4M19](/packages/anlutro-l4-settings)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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