PHPackages                             tomk79/h - 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. tomk79/h

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tomk79/h
========

A shorthand of htmlspecialchars().

0.1.0(10y ago)0249MITPHP

Since Sep 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tomk79/php-h)[ Packagist](https://packagist.org/packages/tomk79/h)[ RSS](/packages/tomk79-h/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

tomk79/h
========

[](#tomk79h)

A shorthand of htmlspecialchars().

Install
-------

[](#install)

```
{
    "require": {
        "tomk79/h": "*"
    }
}

```

Usage
-----

[](#usage)

```
echo( h('HTML String') ); // Same as result of `htmlspecialchars()`

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3955d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00ca3b0b7c69b5a8c25bbfb82b305ab94c4fc7458b38df445cbb97acc073875f?d=identicon)[tomk79](/maintainers/tomk79)

---

Top Contributors

[![tomk79](https://avatars.githubusercontent.com/u/584845?v=4)](https://github.com/tomk79 "tomk79 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[t3/dce

Best FlexForm based content elements since 2012. With TCA mapping feature, simple backend view and much more features which makes it super easy to create own content element types.

17463.6k1](/packages/t3-dce)

PHPackages © 2026

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