PHPackages                             phplang/xhp-lib - 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. phplang/xhp-lib

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

phplang/xhp-lib
===============

XHP XHTML PHP library for xhp

0.0.1(9y ago)6383[1 issues](https://github.com/phplang/xhp-lib/issues)BSD-3-ClausePHP

Since Aug 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/phplang/xhp-lib)[ Packagist](https://packagist.org/packages/phplang/xhp-lib)[ Docs](https://github.com/phplang/xhp-lib)[ RSS](/packages/phplang-xhp-lib/feed)WikiDiscussions master Synced 4w ago

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

XHP-LIB
=======

[](#xhp-lib)

Forked from  by Facebook Inc.

This is a community maintained fork of xhp-lib/php-lib focused on non-hack syntax. It is meant to be used with  on PHP. Users of HHVM should install the official xhp-lib at  which has full hack type checker support.

Autoloading
-----------

[](#autoloading)

xhp-lib ships with an ClassLoader implementation which can be used by projects in a composer autoload "files" include as follows:

In composer.json:

```
{
  "autoload": {
    "files": [
      "src/xhp-autoload.php"
    ]
  }
}

```

And in src/xhp-autoload.php:

```
