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

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

tj09/xhp-lib
============

Class library for XHP

v1.0.1(3y ago)0101MITPHPPHP &gt;=7.2

Since Jun 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TJ09/xhp-lib)[ Packagist](https://packagist.org/packages/tj09/xhp-lib)[ Docs](https://github.com/TJ09/xhp-lib)[ RSS](/packages/tj09-xhp-lib/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Introduction
============

[](#introduction)

XHP augments the syntax of PHP such that XML document fragments become valid
PHP expressions. This allows you to use PHP as a stricter templating engine and
offers much more straightforward implementation of reusable components.

This repository contains the class library, which is required to use XHP. You
will also want the PHP extension, available from

Installation
============

[](#installation)

[Composer](https://getcomposer.org/) is the recommended installation method. To add XHP to your project, add the following to your `composer.json` then re-run composer:

```

  "require": {
    "tj09/xhp-lib": "1.x"
  }

```

Simple Example
==============

[](#simple-example)

```
