Convenience wrapper for HHVM
Fetching latest commit…
Cannot retrieve the latest commit at this time.

This project is no longer maintained as Facebook removed the functionality it was built on from HHVM.


hhvm-wrapper is a convenience wrapper for HHVM.

Latest Stable Version Dependency Status


PHP Archive (PHAR)

The easiest way to obtain hhvm-wrapper is to download a PHP Archive (PHAR) that has all required dependencies of hhvm-wrapper bundled in a single file:

chmod +x hhvm-wrapper.phar
mv hhvm-wrapper.phar /usr/local/bin/hhvm-wrapper

You can also immediately use the PHAR after you have downloaded it, of course:

php hhvm-wrapper.phar


Simply add a dependency on sebastian/hhvm-wrapper to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a development-time dependency on hhvm-wrapper:

    "require-dev": {
        "sebastian/hhvm-wrapper": "*"

For a system-wide installation via Composer, you can run:

composer global require 'sebastian/hhvm-wrapper=2.0'

Make sure you have ~/.composer/vendor/bin/ in your path.

Usage Example


➜  ~  hhvm-wrapper compile --target application.hhbc /path/to/source
hhvm-wrapper 2.0.2 by Sebastian Bergmann.

Static Code Analysis

➜  ~  hhvm-wrapper analyze src
hhvm-wrapper 2.0.2 by Sebastian Bergmann.

Using ruleset phar://hhvm-wrapper-2.0.2.phar/ruleset.xml

  72    Call to unknown method: $this->setName('analyze')

  67    Call to unknown method: $this->setDefinition(array(new

  68    Call to unknown method: $this->setName('compile')

Found 3 violations in 3 files (out of 12 total files).