phplang/xhp-lib
最新稳定版本:0.0.1
Composer 安装命令:
composer require phplang/xhp-lib
包简介
XHP XHTML PHP library for xhp
关键字:
README 文档
README
Forked from https://github.com/facebook/xhp-lib/tree/1205aad1045912c4ccb747b297f0093a4196c202 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 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.
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:
<?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.
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-08-13