PHPackages                             kaloa/renderer - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kaloa/renderer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kaloa/renderer
==============

A collection of HTML output renderers

v0.3.0(4mo ago)4150MITPHPPHP ^8.5

Since Nov 18Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/mermshaus/kaloa-renderer)[ Packagist](https://packagist.org/packages/kaloa/renderer)[ RSS](/packages/kaloa-renderer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

kaloa/renderer
==============

[](#kaloarenderer)

Install
-------

[](#install)

Via Composer:

```
$ composer require kaloa/renderer
```

Requirements
------------

[](#requirements)

- PHP &gt;= 8.5

Demo
----

[](#demo)

```
$ php -S localhost:9090 -t demos/renderer
```

Documentation
-------------

[](#documentation)

### Usage

[](#usage)

```
use Kaloa\Renderer\Factory;

$cm = Factory::createRenderer('commonmark');
echo $cm->render('**Hello *[World](http://example.org)*!**');
// Hello World!

$bb = Factory::createRenderer('inigo');
echo $bb->render('[i]Hello [s]Moon[/s] [b]Earth[/b]![/i]');
// Hello Moon Earth!

// ...
```

### Renderers

[](#renderers)

#### commonmark (third-party)

[](#commonmark-third-party)

The [league/commonmark](https://github.com/thephpleague/commonmark) parser for CommonMark.

#### inigo

[](#inigo)

This is basically a BBCode renderer. The parser tries to automatically add `` elements where appropriate. Therefore, all tags are classified as inline or outline.

Supported tags:

- `i`|`em`, `b`|`strong`
- `u`, `s`|`strike`
- `icode`
- `h1`-`h6`
- `dl`, `dt`, `dd`
- `ul`, `ol`, `li`
- `table`, `tr`, `th`, `td`
- `quote` (`=@author`)
- `off`|`noparse`
- `var`
- `indent`, `center`
- `url`|`link` (`=@href`, `@title`)
- `img` (`=@src`)
- `abbr` (`=@title`)
- `html`
- `code` (`=@lang`)
- `fn`, `fnt`
- `youtube`

---

- `amazon`

#### xml

[](#xml)

todo

#### xmllegacy

[](#xmllegacy)

todo

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

Further quality assurance:

```
$ ./vendor/bin/phpmd ./src text codesize,design,naming
```

Credits
-------

[](#credits)

- [Marc Ermshaus](https://github.com/mermshaus)

License
-------

[](#license)

The package is published under the MIT License. See [LICENSE](https://github.com/mermshaus/kaloa-renderer/blob/master/LICENSE) for full license info.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance76

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

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

Every ~1107 days

Total

5

Last Release

133d ago

PHP version history (4 changes)0.1.0PHP &gt;=5.3.0

v0.1.1PHP &gt;=5.4.8

v0.2.0PHP &gt;=7.4

v0.3.0PHP ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/09ea55d20cb22b53fa2ad722ce7a6a047d49a965c2df60024a2ac722cebaa313?d=identicon)[mermshaus](/maintainers/mermshaus)

---

Top Contributors

[![mermshaus](https://avatars.githubusercontent.com/u/29676?v=4)](https://github.com/mermshaus "mermshaus (59 commits)")

---

Tags

xmlhtmlmarkdownrendereroutputbbcode

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaloa-renderer/health.svg)

```
[![Health](https://phpackages.com/badges/kaloa-renderer/health.svg)](https://phpackages.com/packages/kaloa-renderer)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k28.6M199](/packages/league-html-to-markdown)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[querypath/querypath

HTML/XML querying and processing (like jQuery)

8197.0M27](/packages/querypath-querypath)[pixel418/markdownify

The HTML to Markdown converter for PHP

196800.8k8](/packages/pixel418-markdownify)[texy/texy

Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated against spambots), national typographic single and double quotation marks, ellipses, em dashes, dimension sign, nonbreakable spaces (e.g. in phone numbers), acronyms, arrows and many others. Texy code can optionally contain HTML tags.

161838.9k15](/packages/texy-texy)

PHPackages © 2026

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