Libraries tagged by code-block
spatie/commonmark-shiki-highlighter
5287577 Downloads
Highlight code blocks with league/commonmark and Shiki
phrity/util-errorhandler
13383379 Downloads
Inline error handler; catch and resolve errors for code block.
codeception/specify
11158182 Downloads
BDD code blocks for PHPUnit and Codeception
funct/funct
146753 Downloads
A PHP library with commonly used code blocks
spatie/commonmark-highlighter
482426 Downloads
Highlight your markdown code blocks with league/commonmark
iamgerwin/php-pdf-to-markdown-parser
24697 Downloads
A lightweight PHP library to convert PDF documents into clean, structured Markdown. Supports text extraction, headings, lists, tables, diagrams and code blocks for easier content reuse and publishing.
symfony-tools/code-block-checker
11602 Downloads
shikiphp/shikiphp
770 Downloads
Pure PHP port of Shiki. Syntax-highlight code with VS Code themes and TextMate grammars — no extensions beyond json and mbstring, no Node, no Oniguruma binding.
silverstripe/markdown-php-codesniffer
105458 Downloads
A wrapper around squizlabs/PHP_CodeSniffer which lets you lint PHP fenced code blocks in markdown files
particle-academy/last-word
1761 Downloads
Standalone word-processing document read/write tool for agentic docs. Framework-agnostic PHP core that writes .docx (Office Open XML / WordprocessingML) from a JSON document model — headings, styled runs, nested lists, tables, code blocks, quotes, embedded images — reads them back with high fidelity, and bridges to/from GFM markdown so WYSIWYG editors round-trip Word files without converter sandwiches.
mathiasverraes/uptodocs
1202 Downloads
UpToDocs scans a Markdown file for PHP code blocks, and executes each one in a separate process. Include this in your CI workflows, to make sure your documentation is always up to date with your code.
linkrobins/clipboard
812 Downloads
Adds a copy-to-clipboard button to code blocks, plus an optional language label. Ported to Flarum 2.0 from ffans/clipboardjs.
jeffersongoncalves/laravel-html-sanitizer
1607 Downloads
This Laravel package provides a simple wrapper around the Symfony HTML Sanitizer to safely clean untrusted HTML. It strips scripts, inline event handlers, and Alpine attributes while keeping the presentational subset (headings, lists, tables, code blocks, images, links) that rendered Markdown and READMEs need. The package is easy to install and configure, seamlessly integrating with your existing Laravel application.
rasuvaeff/doc-exec
525 Downloads
Doctest for PHP: execute fenced code blocks from README/docs against the current codebase and diff the output
nickjbedford/block-cache
219 Downloads
Provides code block level HTML, text and object caching to aggressively cache the generated elements of PHP web pages.