laithshadeed/uri-parser

dev-master 2017-02-01 22:18 UTC

This package is not auto-updated.

Last update: 2024-09-25 23:21:06 UTC


README

Build Status

An attempt in 2016 to explore Hack lang and revisit PHP & its ecosystem after last time I used it in 2014.

uri-parser

示例URI解析器 - 不建议在生产环境中使用

安装

composer require laithshadeed/uri-parser

用法

$uri = new Http\Uri('http://عربي.امارات/أسئلة-متكررة?مستحيل=نعم');
echo $uri->host;

Hack & Travis

代码是用Hack编写的。我使用h2tp将其转换为普通PHP。为了使非hhvm版本在travis上成功构建,我添加了./transpile文件。它执行以下操作

  • transpile {src,test} -> php/{src,test}
  • 复制hhvm库、vendor和phpunit配置 -> ./php