Search by

hershel-theodore-layton / hhvm-four-shim

Hershel Theodore Layton

Supporting hhvm 4 for as long as possible.

Package info

github.com/hershel-theodore-layton/hhvm-four-shim

Language:Hack

pkg:composer/hershel-theodore-layton/hhvm-four-shim

Statistics

Installs: 15 261

Dependents: 9

Suggesters: 0

Stars: 0

Open Issues: 0

v0.6.5 2026-09-30 14:05 UTC

This package is auto-updated.

Last update: 2026-10-11 23:59:05 UTC


README

Supporting HHVM 4 for as long as possible.

Versions and package selection

HHVM version Implementation branch Package constraint
HHVM 4 backports (hhvm ^4) ^0.4
HHVM after 4 master (hhvm >=5) ^0.6

To support both families, require "hershel-theodore-layton/hhvm-four-shim": "<1". Composer selects the package line during dependency resolution using the reported HHVM version; there is no runtime switch. ^0.6 alone cannot resolve on HHVM 4.

The master CI matrix lists the tested HHVM versions; Composer's broader requirement does not imply testing.

Why is this needed?

The two package lines provide a common API for HTL across HHVM versions. For example, downgrade_vecish uses varray(...) on HHVM 4 and returns the input vec unchanged on master.