Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Composer installable, BSD-licensed, embedding non-XHP markup

Choose a tag to compare

@fredemmott fredemmott released this 02 Mar 20:20
  • The PHP5 extension has been split to https://github.com/facebookarchive/xhp-php5-extension
  • As this repository no longer includes a PHP5 extension, the Zend and PHP licenses are not appropriate. Relicensed as BSD
  • You can now add XHP to your composer-based PHP project (facebook/xhp-lib)
  • Other markup can now be embedded in XHP via the XHPUnsafeRenderable and XHPAlwaysValidChild interfaces - see MIGRATING.md for details
  • Provide toString() as well as __toString(). They are identical, however calling toString() will give you much nicer backtraces
  • validation was overly strict. Relaxed.
  • added HTML conditional comments
  • improved support for Hack Vectors, Sets, and Maps
  • support nested array specifications - eg array<array<string, int>>
  • single quotes are now allowed in HTML attributes without being escaped
  • added Contexts (see 1e1825c)

This release supports PHP5 and HHVM.

Branch Changes

The "hack" branch will shortly be merged into master. If you are already using composer to track master, please start tracking the '1.x' branch instead, or change to using ~1.6.