Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laithshadeed/uri-parser
Sample URI Parser - Not meant to be used in production
https://github.com/laithshadeed/uri-parser
Last synced: 30 days ago
JSON representation
Sample URI Parser - Not meant to be used in production
- Host: GitHub
- URL: https://github.com/laithshadeed/uri-parser
- Owner: laithshadeed
- License: mit
- Created: 2016-03-22T21:44:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-01T22:18:07.000Z (almost 8 years ago)
- Last Synced: 2024-03-28T23:05:34.982Z (9 months ago)
- Language: Hack
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/laithshadeed/uri-parser.svg?branch=master)](https://travis-ci.org/laithshadeed/uri-parser)
```
An attempt in 2016 to explore Hack lang and revisit PHP & its ecosystem after last time I used it in 2014.
```
## uri-parser
Sample URI Parser - Not meant to be used in production## Install
```
composer require laithshadeed/uri-parser
```## Usage
```
$uri = new Http\Uri('http://عربي.امارات/أسئلة-متكررة?مستحيل=نعم');
echo $uri->host;
```## Hack & Travis
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