2017 © Pedro Peláez
 

library xhp-lib

XHP XHTML PHP library for xhp

image

phplang/xhp-lib

XHP XHTML PHP library for xhp

  • Saturday, August 13, 2016
  • by sgolemon
  • Repository
  • 1 Watchers
  • 4 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 77 % Grown

The README.md

XHP-LIB

Forked from https://github.com/facebook/xhp-lib/tree/1205aad1045912c4ccb747b297f0093a4196c202 by Facebook Inc., (*1)

This is a community maintained fork of xhp-lib/php-lib focused on non-hack syntax. It is meant to be used with https://github.com/phplang/xhp on PHP. Users of HHVM should install the official xhp-lib at https://github.com/facebook/xhp-lib which has full hack type checker support., (*2)

Autoloading

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

In composer.json:, (*4)

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

And in src/xhp-autoload.php:, (*5)

<?php

(new PhpLang\XhpLib\ClassLoader([
  ':view' => __DIR__ . '/../view/',
])->register();

In the above example, tags like <view:card:foo/> will be autoloaded from view/card/foo.php in the package root., (*6)

The Versions

13/08 2016

dev-master

9999999-dev https://github.com/phplang/xhp-lib

XHP XHTML PHP library for xhp

  Sources   Download

BSD-3-Clause

The Requires

  • ext-xhp *

 

The Development Requires

xhp hacklang

13/08 2016

0.0.1

0.0.1.0 https://github.com/phplang/xhp-lib

XHP XHTML PHP library for xhp

  Sources   Download

BSD-3-Clause

The Requires

  • ext-xhp *

 

The Development Requires

xhp hacklang