PHPackages                             htsl/htsl - 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. [Templating &amp; Views](/categories/templating)
4. /
5. htsl/htsl

ActiveLibrary[Templating &amp; Views](/categories/templating)

htsl/htsl
=========

Htsl.php is a PHP library to translate HTSL(HyperText Structured Language) to HTML.

0.1.7(8y ago)91061[5 issues](https://github.com/Fenzland/Htsl.php/issues)MITPHPPHP &gt;=7.0

Since Sep 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Fenzland/Htsl.php)[ Packagist](https://packagist.org/packages/htsl/htsl)[ Docs](http://htsl.fenzland.com)[ RSS](/packages/htsl-htsl/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (11)Used By (0)

Htsl.php
========

[](#htslphp)

[![Platform](https://camo.githubusercontent.com/bd3fd34462b0eff9f5b6822f377b6c68344f9a2143ededddc59d92e9a0d883e2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d76372e302d626c75652e737667)](http://php.net/)[![Build Status](https://camo.githubusercontent.com/44dd6b71b686a1efd76a7037cfd387d2ecb36aa5d5d3231d150ab5d8ec56c888/68747470733a2f2f7472617669732d63692e6f72672f46656e7a6c616e642f4874736c2e7068702e7376673f6272616e63683d74657374)](https://travis-ci.org/Fenzland/Htsl.php)[![Build Status](https://camo.githubusercontent.com/a633ef0605b744c388d8be1d9f80af2e8d7409b01df86960914c47bdc324590a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f46656e7a6c616e642f4874736c2e7068702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Fenzland/Htsl.php/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8f049902b2910fe984ad502d96f5e0197e6f647edb0bc895e8a07b21a7a6421f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f46656e7a6c616e642f4874736c2e7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Fenzland/Htsl.php/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/f72f3500422b76db407e41de7090b8e180e2e587656d3089b74ff5cc80c9ebf9/68747470733a2f2f706f7365722e707567782e6f72672f6874736c2f6874736c2f762f737461626c65)](https://packagist.org/packages/htsl/htsl)[![Latest Unstable Version](https://camo.githubusercontent.com/2d0d4f8db8ce97a1ca7fc8b691765f260aedc21bb02c9ecf3a0f25cdccac36f0/68747470733a2f2f706f7365722e707567782e6f72672f6874736c2f6874736c2f762f756e737461626c65)](https://packagist.org/packages/htsl/htsl)[![License](https://camo.githubusercontent.com/072e494897b12ed550a8219d0af6c8756100cc43a4686fc30ab77297f04ec13c/68747470733a2f2f706f7365722e707567782e6f72672f6874736c2f6874736c2f6c6963656e7365)](https://packagist.org/packages/htsl/htsl)[![Total Downloads](https://camo.githubusercontent.com/33b48a24234e1784c127a5cd5626b93cea03a8972610a651de39cfbf810a9044/68747470733a2f2f706f7365722e707567782e6f72672f6874736c2f6874736c2f646f776e6c6f616473)](https://packagist.org/packages/htsl/htsl)[![Monthly Downloads](https://camo.githubusercontent.com/cee508218a2c8ddc707d7a578408d9544c6e0870902db8ffb2baf8ca0a22cb56/68747470733a2f2f706f7365722e707567782e6f72672f6874736c2f6874736c2f642f6d6f6e74686c79)](https://packagist.org/packages/htsl/htsl)[![Daily Downloads](https://camo.githubusercontent.com/f7307639b85b1264ca5e868ecb1d95c52488e05202b13a80e9b05565894fd728/68747470733a2f2f706f7365722e707567782e6f72672f6874736c2f6874736c2f642f6461696c79)](https://packagist.org/packages/htsl/htsl)

A PHP library to translate HTSL(HyperText Structured Language) to HTML.

HTSL is a language designed to take place of HTML, SVG, XML or other markup language. Which is simpler, cleaner, more readable, content evident and easy to write than HTML.

An amazing sight is all browsers work with HTSL instead of HTML. But now, we must compile HTSL into HTML for browsers. So that is why Htsl.php here.

Platform
========

[](#platform)

php ~7.0

Documentation
=============

[](#documentation)

See [htsl.fenzland.com](http://htsl.fenzland.com).

Base Usage
==========

[](#base-usage)

Step 1. Get Htsl.php by composer

```
composer require htsl/htsl:@dev
```

Step 2. Make a instance of Htsl

```
$htsl= new Htsl\Htsl(/*[custom configuration here]*/);
```

Step 3. Compiling a HTSL file into a PHP file.

```
$htsl->compile($fromFile,$toFile);
```

Step 4. Include the compiled file.

Framework support
=================

[](#framework-support)

Laravel: [Htsl 4 Laravel](https://github.com/Fenzland/Htsl-laravel)

License
=======

[](#license)

[MIT license](http://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.1% 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 ~73 days

Recently: every ~114 days

Total

8

Last Release

2999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4088943a17e5d5e92ecb0196b9b2970af09cf5b3e1b8b67443c79169878f3cbe?d=identicon)[Fenzland](/maintainers/Fenzland)

---

Top Contributors

[![Fenzland](https://avatars.githubusercontent.com/u/19697989?v=4)](https://github.com/Fenzland "Fenzland (86 commits)")[![uukoo](https://avatars.githubusercontent.com/u/9957533?v=4)](https://github.com/uukoo "uukoo (79 commits)")

---

Tags

htslhypertext-structured-languagelanguagephp-librarytemplate engineHTSL

### Embed Badge

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

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

###  Alternatives

[phptal/phptal

PHPTAL is a templating engine for PHP5 that implements Zope Page Templates syntax

179421.6k19](/packages/phptal-phptal)[foil/foil

PHP template engine for native PHP templates

170111.2k7](/packages/foil-foil)[proai/laravel-handlebars

A Laravel wrapper for LightnCandy for using the Handlebars (and Mustache) template engine.

38204.7k](/packages/proai-laravel-handlebars)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.4k3](/packages/talesoft-tale-pug)[wanze/template-engine-factory

Provides ProcessWire integration for various template engines such as Twig.

2612.0k4](/packages/wanze-template-engine-factory)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)

PHPackages © 2026

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