Registry / utility / scrivo-highlight-php

scrivo-highlight-php

JSON →
library9.12.0phppackagistunverified

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

composer require scrivo/highlight.php
INSTALL
IMPORT
SIG · SCRIVO-HIGHLIGHT-P
S
scrivo-highlight-php
utilityphpv9.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Highlighter
use Highlight\Highlighter;

Highlight PHP code syntax.

use Highlight\Highlighter; $hl = new Highlighter(); $result = $hl->highlight('php', '<?php echo "Hello World"; ?>'); echo $result->value;
Debug
Known issues
breakingVersion 9.x uses a different API than later versions; check compatibility.
fix
Use the correct version's API documentation.
affects: 9.12.0
Upgrade
Version history
9.12.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
scrivo-highlight-php — pip install scrivo-highlight-php · libregistry