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(9mo ago)124MITPHPPHP ^8.3

Since May 4Pushed 9mo 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 today

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

36

—

LowBetter than 79% of packages

Maintenance58

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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