dev-master
9999999-dev https://github.com/laithshadeed/uri-parser
MIT
The Requires
- php >=5.4.0
The Development Requires
uri
Wallogit.com
2017 © Pedro Peláez
An attempt in 2016 to explore Hack lang and revisit PHP & its ecosystem after last time I used it in 2014.
Sample URI Parser - Not meant to be used in production, (*2)
composer require laithshadeed/uri-parser
$uri = new Http\Uri('http://عربي.امارات/أسئلة-متكررة?مستحيل=نعم');
echo $uri->host;
The code is written in Hack. I use h2tp to transpile it into plain PHP. To make travis build successfully for non-hhvm versions, I added ./transpile file. It does the following: - transpile {src,test} -> php/{src,test} - Copy hhvm libs, vendor, phpunit configs -> ./php, (*3)
MIT
uri